Fix bug in CharPrevExA().

This commit is contained in:
Tony Lambregts 2005-01-28 11:29:37 +00:00 committed by Alexandre Julliard
parent fc79906621
commit ffc17dbe0d
1 changed files with 1 additions and 1 deletions

View File

@ -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;