riched20: Fixed bounds error when finding text forward.

This commit is contained in:
Thomas Kho 2006-02-11 18:39:17 +01:00 committed by Alexandre Julliard
parent 482ab27e8d
commit caffa53227
1 changed files with 1 additions and 1 deletions

View File

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