Fix bug in CharPrevExA().
This commit is contained in:
parent
fc79906621
commit
ffc17dbe0d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue