Author: tfaber
Date: Tue Mar 31 18:30:02 2015
New Revision: 67001
URL:
http://svn.reactos.org/svn/reactos?rev=67001&view=rev
Log:
[WSCRIPT]
- Correctly use CommandLineToArgvW. Fixes cscript crashing on start.
CORE-9439 #resolve
Modified:
trunk/reactos/base/applications/cmdutils/wscript/main.c
Modified: trunk/reactos/base/applications/cmdutils/wscript/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/wscript/main.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/wscript/main.c [iso-8859-1] Tue Mar 31
18:30:02 2015
@@ -412,11 +412,11 @@
WINE_TRACE("(%p %p %s %x)\n", hInst, hPrevInst, wine_dbgstr_w(cmdline),
cmdshow);
- argv = CommandLineToArgvW(cmdline, &argc);
+ argv = CommandLineToArgvW(GetCommandLineW(), &argc);
if(!argv)
return 1;
- for(i=0; i<argc; i++) {
+ for(i=1; i<argc; i++) {
if(*argv[i] == '/' || *argv[i] == '-') {
if(!set_host_properties(argv[i]))
return 1;