2006-02-03 Thomas Kho * dlls/riched20/editor.c: riched20: Fixed bounds error when finding text forward Signed-off-by: Thomas Kho diff -u -r1.82 editor.c --- dlls/riched20/editor.c 2 Feb 2006 13:10:30 -0000 1.82 +++ dlls/riched20/editor.c 4 Feb 2006 00:52:47 -0000 @@ -710,7 +710,7 @@ 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;