Pass the correct hFile to PE_CreateModule.

This commit is contained in:
Uwe Bonnes 2000-10-19 22:27:23 +00:00 committed by Alexandre Julliard
parent 018c6545dc
commit 38012a5604

View file

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