Module: wine Branch: master Commit: 483085ad3f2ec3dd66b0acd1f7727d993d218a40 URL: https://gitlab.winehq.org/wine/wine/-/commit/483085ad3f2ec3dd66b0acd1f7727d9...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Nov 3 15:08:05 2022 +0100
wow64: Load dependencies of 64-bit modules only from the 64-bit system directory.
---
dlls/wow64/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wow64/syscall.c b/dlls/wow64/syscall.c index 6709a575afa..86c5b61157e 100644 --- a/dlls/wow64/syscall.c +++ b/dlls/wow64/syscall.c @@ -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 );