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:
Alexandre Julliard 2006-02-22 17:02:25 +01:00
parent acdd03add6
commit 3229e293d3
1 changed files with 1 additions and 1 deletions

View File

@ -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 )))
{