Pass the correct hFile to PE_CreateModule.
This commit is contained in:
parent
018c6545dc
commit
38012a5604
|
@ -724,7 +724,7 @@ WINE_MODREF *PE_LoadLibraryExA (LPCSTR name, DWORD flags)
|
|||
}
|
||||
|
||||
/* Create 32-bit MODREF */
|
||||
if ( !(wm = PE_CreateModule( hModule32, name, flags, -1, FALSE )) )
|
||||
if ( !(wm = PE_CreateModule( hModule32, name, flags, hFile, FALSE )) )
|
||||
{
|
||||
ERR( "can't load %s\n", name );
|
||||
CloseHandle( hFile );
|
||||
|
|
Loading…
Reference in New Issue