Commit c784e346 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

ole32: Quote executable name in CreateProcess call.

Fixes tests on VMs that have spaces in executable path.
parent 04d72a3e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment