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

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-03-25 12:05:41 +01:00
parent 50e33a213d
commit 9bdfb1f34a
1 changed files with 1 additions and 1 deletions

View File

@ -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, &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->ImagePathName, info->imagepath_len );
copy_unicode_string( &src, &dst, &params->CommandLine, info->cmdline_len ); copy_unicode_string( &src, &dst, &params->CommandLine, info->cmdline_len );
copy_unicode_string( &src, &dst, &params->WindowTitle, info->title_len ); copy_unicode_string( &src, &dst, &params->WindowTitle, info->title_len );