Commit 483085ad authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent c302b287
......@@ -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 );
......
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