[USER32] Fix bug in CharPrevExA().

Import Wine commit wine-20050111-258-gffc17dbe0d0:
ffc17dbe0d

Fixes 20 failing tests of user32:CharFuncs.

CORE-18415 CORE-18452
This commit is contained in:
Tony Lambregts 2005-01-28 11:29:37 +00:00 committed by Stanislav Motylkov
parent 59f0ed43b9
commit 05d2935eed
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92

View file

@ -167,7 +167,7 @@ CharPrevExA(WORD codepage, LPCSTR start, LPCSTR ptr, DWORD flags)
while (*start && (start < ptr)) while (*start && (start < ptr))
{ {
LPCSTR next = CharNextExA(codepage, start, flags); LPCSTR next = CharNextExA(codepage, start, flags);
if (next > ptr) break; if (next >= ptr) break;
start = next; start = next;
} }
return (LPSTR)start; return (LPSTR)start;