Module: wine
Branch: refs/heads/master
Commit: 7f515f31121f3a8e782a6233d8291f19097e3eb9
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=7f515f31121f3a8e782a623…
Author: Robert Shearman <rob(a)codeweavers.com>
Date: Sun Mar 5 13:36:03 2006 +0000
wcmd: Improve command line processing.
Make the command line processing more robust by continuing to process
command line options if an unknown one is detected and remove the
skipping of argv[0], which is no longer necessary. This fixes the
parsing when argv[0] isn't set to the program name.
---
programs/wcmd/wcmdmain.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/programs/wcmd/wcmdmain.c b/programs/wcmd/wcmdmain.c
index a0fc4ec..644ebc1 100644
--- a/programs/wcmd/wcmdmain.c
+++ b/programs/wcmd/wcmdmain.c
@@ -57,7 +57,6 @@ int main (int argc, char *argv[])
HANDLE h;
int opt_c, opt_k, opt_q;
- argv++;
opt_c=opt_k=opt_q=0;
while (*argv!=NULL)
{
@@ -74,8 +73,6 @@ int main (int argc, char *argv[])
} else if (lstrcmpi(*argv,"/t")==0 || lstrcmpi(*argv,"/x")==0 ||
lstrcmpi(*argv,"/y")==0) {
/* Ignored for compatibility with Windows */
- } else {
- break;
}
argv++;
}