ntdll: Set the initial DllPath to null if it's empty.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
50e33a213d
commit
9bdfb1f34a
|
@ -2011,7 +2011,7 @@ void init_startup_info(void)
|
||||||
params->CurrentDirectory.DosPath.MaximumLength = MAX_PATH * sizeof(WCHAR);
|
params->CurrentDirectory.DosPath.MaximumLength = MAX_PATH * sizeof(WCHAR);
|
||||||
dst = params->CurrentDirectory.DosPath.Buffer + MAX_PATH;
|
dst = params->CurrentDirectory.DosPath.Buffer + MAX_PATH;
|
||||||
|
|
||||||
copy_unicode_string( &src, &dst, ¶ms->DllPath, info->dllpath_len );
|
if (info->dllpath_len) copy_unicode_string( &src, &dst, ¶ms->DllPath, info->dllpath_len );
|
||||||
copy_unicode_string( &src, &dst, ¶ms->ImagePathName, info->imagepath_len );
|
copy_unicode_string( &src, &dst, ¶ms->ImagePathName, info->imagepath_len );
|
||||||
copy_unicode_string( &src, &dst, ¶ms->CommandLine, info->cmdline_len );
|
copy_unicode_string( &src, &dst, ¶ms->CommandLine, info->cmdline_len );
|
||||||
copy_unicode_string( &src, &dst, ¶ms->WindowTitle, info->title_len );
|
copy_unicode_string( &src, &dst, ¶ms->WindowTitle, info->title_len );
|
||||||
|
|
Loading…
Reference in New Issue