[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

View File

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