cmd: Load start.exe from the system directory.

Fixes cmd test in pure 64-bit wine.

Signed-off-by: Bernhard Übelacker <bernhardu@mailbox.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Bernhard Übelacker 2021-09-08 14:17:14 +02:00 committed by Alexandre Julliard
parent a1c42293a2
commit 810de9d1a7
1 changed files with 2 additions and 2 deletions

View File

@ -4351,8 +4351,8 @@ void WCMD_start(WCHAR *args)
STARTUPINFOW st;
PROCESS_INFORMATION pi;
GetWindowsDirectoryW( file, MAX_PATH );
lstrcatW(file, L"\\command\\start.exe");
GetSystemDirectoryW( file, MAX_PATH );
lstrcatW(file, L"\\start.exe");
cmdline = heap_xalloc( (lstrlenW(file) + lstrlenW(args) + 8) * sizeof(WCHAR) );
lstrcpyW( cmdline, file );
lstrcatW(cmdline, L" ");