Jacek Caban : ole32: Quote executable name in CreateProcess call.
Module: wine Branch: master Commit: c784e346936b3e8f227615dd0348f5d4f5cec5ce URL: http://source.winehq.org/git/wine.git/?a=commit;h=c784e346936b3e8f227615dd03... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Sep 2 11:20:08 2015 +0200 ole32: Quote executable name in CreateProcess call. Fixes tests on VMs that have spaces in executable path. --- dlls/ole32/tests/marshal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/tests/marshal.c b/dlls/ole32/tests/marshal.c index d0f9c71..a4006d0 100644 --- a/dlls/ole32/tests/marshal.c +++ b/dlls/ole32/tests/marshal.c @@ -2969,7 +2969,7 @@ static HANDLE create_target_process(const char *arg) pi.hThread = NULL; pi.hProcess = NULL; winetest_get_mainargs( &argv ); - sprintf(cmdline, "%s %s %s", argv[0], argv[1], arg); + sprintf(cmdline, "\"%s\" %s %s", argv[0], argv[1], arg); ret = CreateProcessA(argv[0], cmdline, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); ok(ret, "CreateProcess failed with error: %u\n", GetLastError()); if (pi.hThread) CloseHandle(pi.hThread);
participants (1)
-
Alexandre Julliard