Skip to content

Commit

Permalink
cmd: Don't parse colons as stream separators when splitting paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
voctav authored and julliard committed Aug 29, 2011
1 parent 899b278 commit 94d2312
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions programs/cmd/batch.c
Expand Up @@ -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!='/'; )
Expand Down

0 comments on commit 94d2312

Please sign in to comment.