mirror of
https://github.com/reactos/reactos.git
synced 2026-06-09 09:23:04 +08: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:
committed by
Stanislav Motylkov
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;
|
||||
|
||||
Reference in New Issue
Block a user