kernel: Initialize the dll path from the main exe name explicitly
since ImagePathName is not always set at that point.
This commit is contained in:
parent
acdd03add6
commit
3229e293d3
|
@ -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 )))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue