Module: wine Branch: refs/heads/master Commit: 3229e293d3eb40591fc18f3e6529d8c02f082419 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=3229e293d3eb40591fc18f3e...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Feb 22 17:02:25 2006 +0100
kernel: Initialize the dll path from the main exe name explicitly since ImagePathName is not always set at that point.
---
dlls/kernel/process.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel/process.c b/dlls/kernel/process.c index bf5d938..4d447ce 100644 --- a/dlls/kernel/process.c +++ b/dlls/kernel/process.c @@ -905,7 +905,7 @@ void __wine_kernel_init(void) debugstr_w(main_exe_name), debugstr_a(__wine_main_argv[0]) );
RtlInitUnicodeString( &NtCurrentTeb()->Peb->ProcessParameters->DllPath, - MODULE_get_dll_load_path(NULL) ); + MODULE_get_dll_load_path(main_exe_name) );
if (!(module = LoadLibraryExW( main_exe_name, 0, DONT_RESOLVE_DLL_REFERENCES ))) {