[PATCH] cmd: Fix cmd test in pure 64-bit wine.
A pure wine64 prefix contains no c:\windows\command\start.exe. Therefore the cmd test fails like this: batch.c:321: Test failed: unexpected char 0x66 position 9 in line 1681 (got 'start /W failed to wait', wanted 'start /W seems to really wait') Or a shorter reproducer: $ wine cmd /C "start /w """" cmd" File not found. Related to the patches in: https://bugs.winehq.org/show_bug.cgi?id=50867 Signed-off-by: Bernhard Übelacker <bernhardu(a)mailbox.org> --- programs/cmd/builtins.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index c7df724ae00..a55ce6e0244 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c @@ -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" "); -- 2.30.2
participants (1)
-
Bernhard Übelacker