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

Alexandre Julliard julliard at winehq.org
Thu Mar 25 16:49:21 CDT 2021


Module: wine
Branch: master
Commit: 9bdfb1f34a4f512488c198555249a49f4e7c1172
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=9bdfb1f34a4f512488c198555249a49f4e7c1172

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Mar 25 12:05:41 2021 +0100

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

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/unix/env.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c
index 256ea40cc87..2f4d988d709 100644
--- a/dlls/ntdll/unix/env.c
+++ b/dlls/ntdll/unix/env.c
@@ -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 );




More information about the wine-cvs mailing list