cmd: Don't parse colons as stream separators when splitting paths.

This commit is contained in:
Octavian Voicu 2011-08-28 01:39:30 +03:00 committed by Alexandre Julliard
parent 899b278558
commit 94d2312fe2
1 changed files with 1 additions and 3 deletions

View File

@ -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!='/'; )