mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[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:
parent
59f0ed43b9
commit
05d2935eed
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue