From caffa53227d37f35bc32c03733dfc94556ff513f Mon Sep 17 00:00:00 2001 From: Thomas Kho Date: Sat, 11 Feb 2006 18:39:17 +0100 Subject: [PATCH] riched20: Fixed bounds error when finding text forward. --- dlls/riched20/editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 6f43cb4c7bf..0eca070bffa 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -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;