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))
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user