cmd.exe: Treat tabs as parameter delimiters.

This commit is contained in:
Colin Fletcher 2009-10-14 11:22:34 +01:00 committed by Alexandre Julliard
parent e95ffacde0
commit 45905b27db
1 changed files with 2 additions and 1 deletions

View File

@ -150,6 +150,7 @@ WCHAR *WCMD_parameter (WCHAR *s, int n, WCHAR **where) {
while (TRUE) {
switch (*s) {
case ' ': /* Skip leading spaces */
case '\t': /* Treat tabs as spaces */
s++;
break;
case '"':
@ -175,7 +176,7 @@ WCHAR *WCMD_parameter (WCHAR *s, int n, WCHAR **where) {
default:
/* Only return where if it is for the right parameter */
if (where != NULL && i==n) *where = s;
while ((*s != '\0') && (*s != ' ') && (*s != ',') && (*s != '=')) {
while ((*s != '\0') && (*s != ' ') && (*s != ',') && (*s != '=') && (*s != '\t')) {
*p++ = *s++;
}
if (i == n && (p!=param)) {