cmd: Don't parse colons as stream separators when splitting paths.
This commit is contained in:
parent
899b278558
commit
94d2312fe2
|
@ -222,9 +222,7 @@ void WCMD_splitpath(const WCHAR* path, WCHAR* drv, WCHAR* dir, WCHAR* name, WCHA
|
||||||
} else if (drv)
|
} else if (drv)
|
||||||
*drv = '\0';
|
*drv = '\0';
|
||||||
|
|
||||||
/* search for end of string or stream separator */
|
end = path + strlenW(path);
|
||||||
for(end=path; *end && *end!=':'; )
|
|
||||||
end++;
|
|
||||||
|
|
||||||
/* search for begin of file extension */
|
/* search for begin of file extension */
|
||||||
for(p=end; p>path && *--p!='\\' && *p!='/'; )
|
for(p=end; p>path && *--p!='\\' && *p!='/'; )
|
||||||
|
|
Loading…
Reference in New Issue