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 )
while (*start && (start < ptr))
{
LPCSTR next = CharNextExA( codepage, start, flags );
if (next > ptr) break;
if (next >= ptr) break;
start = next;
}
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