Octavian Voicu : winefile: Don' t parse colons as stream separators when splitting paths.
Module: wine Branch: master Commit: a966945d984741f3d9580c44b8d48851ebc51f5e URL: http://source.winehq.org/git/wine.git/?a=commit;h=a966945d984741f3d9580c44b8... Author: Octavian Voicu <octavian.voicu(a)gmail.com> Date: Sun Aug 28 01:39:31 2011 +0300 winefile: Don't parse colons as stream separators when splitting paths. --- programs/winefile/splitpath.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/programs/winefile/splitpath.c b/programs/winefile/splitpath.c index 7425147..20d7ded 100644 --- a/programs/winefile/splitpath.c +++ b/programs/winefile/splitpath.c @@ -35,9 +35,7 @@ void _wsplitpath(const WCHAR* path, WCHAR* drv, WCHAR* dir, WCHAR* name, WCHAR* } else if (drv) *drv = '\0'; - /* search for end of string or stream separator */ - for(end=path; *end && *end!=':'; ) - end++; + end = path + lstrlenW(path); /* search for begin of file extension */ for(p=end; p>path && *--p!='\\' && *p!='/'; )
participants (1)
-
Alexandre Julliard