Colin Fletcher : cmd.exe: Treat tabs as parameter delimiters.

Alexandre Julliard julliard at winehq.org
Thu Oct 15 08:54:38 CDT 2009


Module: wine
Branch: master
Commit: 45905b27db5a3fcd485c0c947ff1246aa85f40cb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=45905b27db5a3fcd485c0c947ff1246aa85f40cb

Author: Colin Fletcher <c0l1n_fl3tch3r at yahoo.co.uk>
Date:   Wed Oct 14 11:22:34 2009 +0100

cmd.exe: Treat tabs as parameter delimiters.

---

 programs/cmd/batch.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/programs/cmd/batch.c b/programs/cmd/batch.c
index 157ad08..33b54f7 100644
--- a/programs/cmd/batch.c
+++ b/programs/cmd/batch.c
@@ -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)) {




More information about the wine-cvs mailing list