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@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-03-25 11:31:46 +01:00
parent aef821ccbd
commit 50e33a213d

View file

@ -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 );
}