Thomas Kho : riched20: Fixed bounds error when finding text forward.

Alexandre Julliard julliard at wine.codeweavers.com
Sat Feb 11 13:37:18 CST 2006


Module: wine
Branch: refs/heads/master
Commit: caffa53227d37f35bc32c03733dfc94556ff513f
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=caffa53227d37f35bc32c03733dfc94556ff513f

Author: Thomas Kho <tkho at ucla.edu>
Date:   Sat Feb 11 18:39:17 2006 +0100

riched20: Fixed bounds error when finding text forward.

---

 dlls/riched20/editor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 6f43cb4..0eca070 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -771,7 +771,7 @@ ME_FindText(ME_TextEditor *editor, DWORD
 
     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;




More information about the wine-cvs mailing list