Octavian Voicu : cmd: Don' t parse colons as stream separators when splitting paths.
Alexandre Julliard
julliard at winehq.org
Mon Aug 29 11:28:39 CDT 2011
Module: wine
Branch: master
Commit: 94d2312fe2fdd77669ac826afa24e6821571ebba
URL: http://source.winehq.org/git/wine.git/?a=commit;h=94d2312fe2fdd77669ac826afa24e6821571ebba
Author: Octavian Voicu <octavian.voicu at gmail.com>
Date: Sun Aug 28 01:39:30 2011 +0300
cmd: Don't parse colons as stream separators when splitting paths.
---
programs/cmd/batch.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/programs/cmd/batch.c b/programs/cmd/batch.c
index 03c92ee..f010f28 100644
--- a/programs/cmd/batch.c
+++ b/programs/cmd/batch.c
@@ -222,9 +222,7 @@ void WCMD_splitpath(const WCHAR* path, WCHAR* drv, WCHAR* dir, WCHAR* name, WCHA
} else if (drv)
*drv = '\0';
- /* search for end of string or stream separator */
- for(end=path; *end && *end!=':'; )
- end++;
+ end = path + strlenW(path);
/* search for begin of file extension */
for(p=end; p>path && *--p!='\\' && *p!='/'; )
More information about the wine-cvs
mailing list