[PATCH 4/9] CMD: cmd /c cannot use argv/argc to walk the arguments RESEND

Jason Edmeades jason.edmeades at googlemail.com
Tue Sep 7 17:59:44 CDT 2010


When cmd.exe is launched with /c, it walks the args through argv -
unfortunately these have already had quotes removed. The only way to
get the command line unadulterated is to use GetCommandLine and parse
it ourselves.

Changing to this removes a lot of code, and makes the /c logic
really simple now.

Fixes bugs 20161, 21131
---
 programs/cmd/tests/test_builtins.cmd     |    7 +-
 programs/cmd/tests/test_builtins.cmd.exp |    3 +
 programs/cmd/wcmdmain.c                  |  183 +++++++++---------------------
 3 files changed, 62 insertions(+), 131 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-CMD-cmd-c-cannot-use-argv-argc-to-walk-the-arguments-R.txt
Type: text/x-patch
Size: 8498 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100907/e7a5883f/attachment.bin>


More information about the wine-patches mailing list