mirror of
https://github.com/reactos/reactos.git
synced 2024-06-17 10:01:58 +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))
|
||||
{
|
||||
LPCSTR next = CharNextExA(codepage, start, flags);
|
||||
if (next > ptr) break;
|
||||
if (next >= ptr) break;
|
||||
start = next;
|
||||
}
|
||||
return (LPSTR)start;
|
||||
|
|
Loading…
Reference in a new issue