Alexandre Julliard : ntdll: Use start /exec to support absolute Unix paths.

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


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Mar 25 11:31:46 2021 +0100

ntdll: Use start /exec to support absolute Unix paths.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50858
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/unix/env.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c
index f7ba8ce8ab5..256ea40cc87 100644
--- a/dlls/ntdll/unix/env.c
+++ b/dlls/ntdll/unix/env.c
@@ -1880,12 +1880,11 @@ static RTL_USER_PROCESS_PARAMETERS *build_initial_params(void)
 
     if (status)  /* try launching it through start.exe */
     {
-        static const WCHAR slashwW[] = {'/','w',0};
-        static const WCHAR slashbW[] = {'/','b',0};
-        const WCHAR *args[] = { NULL, slashwW, slashbW };
+        static const WCHAR execW[] = {'/','e','x','e','c',0};
+        const WCHAR *args[] = { NULL, execW };
 
         free( image );
-        prepend_main_wargv( args, 3 );
+        prepend_main_wargv( args, 2 );
         load_start_exe( &image, &module, &image_info );
     }
 




More information about the wine-cvs mailing list