From 3668d127dbc7bb73c2da8287b7cf2de1d562f7ed Mon Sep 17 00:00:00 2001
From: Evcalipt <evcalipt@etersoft.ru>
Date: Wed, 24 Oct 2012 12:56:24 +0400
Subject: [PATCH] cscript: Correct forming cmd for forwarding to wscript

---
 programs/cscript/main.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/cscript/main.c b/programs/cscript/main.c
index f326260..04ee272 100644
--- a/programs/cscript/main.c
+++ b/programs/cscript/main.c
@@ -44,8 +44,8 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cm
     GetSystemDirectoryW(app, MAX_PATH);
     strcatW(app, wscriptW);
     strcpyW(cmd, app);
-    strcatW(app, parbW);
-    strcatW(app, cmdline);
+    strcatW(cmd, parbW);
+    strcatW(cmd, cmdline);
 
     if (!CreateProcessW(app, cmd, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) return 1;
     WaitForSingleObject( pi.hProcess, INFINITE );
-- 
1.7.10.5
