Alistair Leslie-Hughes : cmd: Dont assume cmd.exe is the first argument.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Sep 10 14:47:22 CDT 2014
Module: wine
Branch: master
Commit: 213b244cb5d98a27478252deaf57c2685a3d71a2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=213b244cb5d98a27478252deaf57c2685a3d71a2
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Sat Mar 15 20:00:06 2014 +1100
cmd: Dont assume cmd.exe is the first argument.
---
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 c475ad2..e5865e6 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);
More information about the wine-cvs
mailing list