Commit ffc17dbe authored by Tony Lambregts's avatar Tony Lambregts Committed by Alexandre Julliard

Fix bug in CharPrevExA().

parent fc799066
...@@ -236,7 +236,7 @@ LPSTR WINAPI CharPrevExA( WORD codepage, LPCSTR start, LPCSTR ptr, DWORD flags ) ...@@ -236,7 +236,7 @@ LPSTR WINAPI 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment