Re: kernel32: fix incorrect lastpart in GetFullPathNameA with DBCS
9 Oct
2014
9 Oct
'14
10:35 p.m.
Aric Stewart <aric(a)codeweavers.com> wrote:
--- a/dlls/kernel32/path.c +++ b/dlls/kernel32/path.c @@ -271,7 +271,8 @@ DWORD WINAPI GetFullPathNameA( LPCSTR name, DWORD len, LPSTR buffer,
if (*p != '\\') { - while ((p > buffer + 2) && (*p != '\\')) p--; + while ((p > buffer + 2) && + ((*p != '\\') || IsDBCSLeadByte(*(p-1)))) p--;
This probably should depend on whether ansi or oem code page is active. -- Dmitry.
4171
Age (days ago)
4171
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov