Commit ca5b2013 authored by Bill Medland's avatar Bill Medland Committed by Alexandre Julliard

Prevent trying to handle uninitialised memory as a string.

parent 9ff202e6
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment