Prevent trying to handle uninitialised memory as a string.

This commit is contained in:
Bill Medland 2002-01-18 18:58:08 +00:00 committed by Alexandre Julliard
parent 9ff202e65c
commit ca5b201310

View File

@ -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();