https://git.reactos.org/?p=reactos.git;a=commitdiff;h=05d2935eedba1ef43341b7...
commit 05d2935eedba1ef43341b7a95afb98123256d21b Author: Tony Lambregts tony_lambregts@telusplanet.net AuthorDate: Fri Jan 28 11:29:37 2005 +0000 Commit: Stanislav Motylkov x86corez@gmail.com CommitDate: Mon Nov 7 20:36:06 2022 +0300
[USER32] Fix bug in CharPrevExA().
Import Wine commit wine-20050111-258-gffc17dbe0d0: https://source.winehq.org/git/wine.git/commit/ffc17dbe0d0983d5e0038c38f3c725...
Fixes 20 failing tests of user32:CharFuncs.
CORE-18415 CORE-18452 --- win32ss/user/user32/windows/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win32ss/user/user32/windows/text.c b/win32ss/user/user32/windows/text.c index 3041c488996..bf730d749c9 100644 --- a/win32ss/user/user32/windows/text.c +++ b/win32ss/user/user32/windows/text.c @@ -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;