mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
Prevent trying to handle uninitialised memory as a string.
This commit is contained in:
parent
9ff202e65c
commit
ca5b201310
@ -1379,6 +1379,7 @@ WINE_MODREF *MODULE_LoadLibraryExA( LPCSTR libname, HFILE hfile, DWORD flags )
|
||||
|
||||
filename = HeapAlloc ( GetProcessHeap(), 0, MAX_PATH + 1 );
|
||||
if ( !filename ) return NULL;
|
||||
*filename = 0; /* Just in case we don't set it before goto error */
|
||||
|
||||
RtlAcquirePebLock();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user