wow64: Load dependencies of 64-bit modules only from the 64-bit system directory.

This commit is contained in:
Alexandre Julliard 2022-11-03 15:08:05 +01:00
parent c302b28729
commit 483085ad3f

View file

@ -492,7 +492,7 @@ static HMODULE load_64bit_module( const WCHAR *name )
swprintf( path, MAX_PATH, L"%s\\%s", dir, name );
RtlInitUnicodeString( &str, path );
if ((status = LdrLoadDll( NULL, 0, &str, &module )))
if ((status = LdrLoadDll( dir, 0, &str, &module )))
{
ERR( "failed to load dll %lx\n", status );
NtTerminateProcess( GetCurrentProcess(), status );