Michael Stefaniuc : riched20: Remove no-op addition with 0 (PVS-Studio).

Alexandre Julliard julliard at wine.codeweavers.com
Wed Feb 25 09:57:01 CST 2015


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Wed Feb 25 10:36:51 2015 +0100

riched20: Remove no-op addition with 0 (PVS-Studio).

---

 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 7632d47..4da2369 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -1870,7 +1870,7 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, const CHARRANGE *chrg, const WCH
       if (nCurEnd == 0)
       {
         ME_PrevRun(&pCurPara, &pCurItem);
-        nCurEnd = pCurItem->member.run.len + nMatched;
+        nCurEnd = pCurItem->member.run.len;
       }
 
       while (pCurItem && ME_CharCompare( *get_text( &pCurItem->member.run, nCurEnd - nMatched - 1 ),




More information about the wine-cvs mailing list