cmd: Dont assume cmd.exe is the first argument (try 3)

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Thu Mar 20 21:53:36 CDT 2014


Hi,
Remove cmd check since it was redundant.

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


Best Regards
   Alistair Leslie-Hughes
-------------- next part --------------
>From 84eac65b1b32bf6524e78a940cb15efd5c9e1d5d Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Sat, 15 Mar 2014 20:00:06 +1100
Subject: [PATCH] Dont assume cmd.exe is the first argument
To: wine-patches <wine-patches at winehq.org>

---
 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



More information about the wine-patches mailing list