Commit 9bdfb1f3 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Set the initial DllPath to null if it's empty.

parent 50e33a21
......@@ -2011,7 +2011,7 @@ void init_startup_info(void)
params->CurrentDirectory.DosPath.MaximumLength = MAX_PATH * sizeof(WCHAR);
dst = params->CurrentDirectory.DosPath.Buffer + MAX_PATH;
copy_unicode_string( &src, &dst, &params->DllPath, info->dllpath_len );
if (info->dllpath_len) copy_unicode_string( &src, &dst, &params->DllPath, info->dllpath_len );
copy_unicode_string( &src, &dst, &params->ImagePathName, info->imagepath_len );
copy_unicode_string( &src, &dst, &params->CommandLine, info->cmdline_len );
copy_unicode_string( &src, &dst, &params->WindowTitle, info->title_len );
......
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