From 50e33a213d7382906594e565b5813a41d87117fe Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 25 Mar 2021 11:31:46 +0100 Subject: [PATCH] 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 --- 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 ); }