cmd: Dont assume cmd.exe is the first argument.

This commit is contained in:
Alistair Leslie-Hughes 2014-03-15 20:00:06 +11:00 committed by Alexandre Julliard
parent 4aa1af9016
commit 213b244cb5
1 changed files with 1 additions and 1 deletions

View File

@ -2363,7 +2363,7 @@ int wmain (int argc, WCHAR *argvW[])
*/ */
cmdLine = GetCommandLineW(); cmdLine = GetCommandLineW();
WINE_TRACE("Full commandline '%s'\n", wine_dbgstr_w(cmdLine)); WINE_TRACE("Full commandline '%s'\n", wine_dbgstr_w(cmdLine));
args = 1; /* start at first arg, skipping cmd.exe itself */ args = 0;
opt_c = opt_k = opt_q = opt_s = FALSE; opt_c = opt_k = opt_q = opt_s = FALSE;
WCMD_parameter(cmdLine, args, &argPos, TRUE, TRUE); WCMD_parameter(cmdLine, args, &argPos, TRUE, TRUE);