riched20: Fixed bounds error when finding text forward.
This commit is contained in:
parent
482ab27e8d
commit
caffa53227
|
@ -771,7 +771,7 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, CHARRANGE *chrg, WCHAR *text, CH
|
|||
|
||||
para = ME_GetParagraph(item);
|
||||
while (item
|
||||
&& para->member.para.nCharOfs + item->member.run.nCharOfs + nStart + nLen < nMax)
|
||||
&& para->member.para.nCharOfs + item->member.run.nCharOfs + nStart + nLen <= nMax)
|
||||
{
|
||||
ME_DisplayItem *pCurItem = item;
|
||||
int nCurStart = nStart;
|
||||
|
|
Loading…
Reference in New Issue