cscript: Correct forming cmd for forwarding to wscript.
This commit is contained in:
parent
ffa7d16731
commit
cc796b9569
|
@ -44,8 +44,8 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cm
|
||||||
GetSystemDirectoryW(app, MAX_PATH);
|
GetSystemDirectoryW(app, MAX_PATH);
|
||||||
strcatW(app, wscriptW);
|
strcatW(app, wscriptW);
|
||||||
strcpyW(cmd, app);
|
strcpyW(cmd, app);
|
||||||
strcatW(app, parbW);
|
strcatW(cmd, parbW);
|
||||||
strcatW(app, cmdline);
|
strcatW(cmd, cmdline);
|
||||||
|
|
||||||
if (!CreateProcessW(app, cmd, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) return 1;
|
if (!CreateProcessW(app, cmd, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) return 1;
|
||||||
WaitForSingleObject( pi.hProcess, INFINITE );
|
WaitForSingleObject( pi.hProcess, INFINITE );
|
||||||
|
|
Loading…
Reference in New Issue