Commit 3229e293 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel: Initialize the dll path from the main exe name explicitly

since ImagePathName is not always set at that point.
parent acdd03ad
......@@ -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 )))
{
......
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