diff --git a/loader/module.c b/loader/module.c index b49e28b6ad4..c8f716d8c71 100644 --- a/loader/module.c +++ b/loader/module.c @@ -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();