From: Alistair Leslie-Hughes Subject: cmd: Dont assume cmd.exe is the first argument (try 3) Message-Id: <532BA9B0.4040302@hotmail.com> Date: Fri, 21 Mar 2014 13:53:36 +1100 Hi, Remove cmd check since it was redundant. Changelog: cmd: Dont assume cmd.exe is the first argument Best Regards Alistair Leslie-Hughes From 84eac65b1b32bf6524e78a940cb15efd5c9e1d5d Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Sat, 15 Mar 2014 20:00:06 +1100 Subject: [PATCH] Dont assume cmd.exe is the first argument To: wine-patches --- programs/cmd/wcmdmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c index 647f988..23bd4ad 100644 --- a/programs/cmd/wcmdmain.c +++ b/programs/cmd/wcmdmain.c @@ -2363,7 +2363,7 @@ int wmain (int argc, WCHAR *argvW[]) */ cmdLine = GetCommandLineW(); 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; WCMD_parameter(cmdLine, args, &argPos, TRUE, TRUE); -- 1.8.3.2