Make 'cmd /c cl /MUMBLE foo.c' pass /MUMBLE to cl.

This commit is contained in:
Dan Kegel 2003-02-24 20:39:53 +00:00 committed by Alexandre Julliard
parent f85440466b
commit a20622d7de
1 changed files with 5 additions and 5 deletions

View File

@ -56,14 +56,14 @@ HANDLE h;
args[0] = param[0] = '\0';
if (argc > 1) {
for (i=1; i<argc; i++) {
if (argv[i][0] == '/') {
/* interpreter options must come before the command to execute.
* Any options after the command are command options, not interpreter options.
*/
for (i=1; i<argc && argv[i][0] == '/'; i++)
strcat (args, argv[i]);
}
else {
for (; i<argc; i++) {
strcat (param, argv[i]);
strcat (param, " ");
}
}
}