Marcus Meissner : riched20: Fixed wrong condition (Coverity).

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 6 08:03:38 CST 2007


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Mon Feb  5 21:24:27 2007 +0100

riched20: Fixed wrong condition (Coverity).

---

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

diff --git a/dlls/riched20/row.c b/dlls/riched20/row.c
index 549b3cb..a9acb79 100644
--- a/dlls/riched20/row.c
+++ b/dlls/riched20/row.c
@@ -28,7 +28,7 @@ ME_DisplayItem *ME_FindRowStart(ME_Conte
                                 int nRelPos) {
   ME_DisplayItem *para = ME_GetParagraph(item);
   ME_MustBeWrapped(c, para);
-  if(nRelPos>=0) { /* if this or preceding row */
+  if(nRelPos<=0) { /* if this or preceding row */
     while(nRelPos<=0) {
       ME_DisplayItem *item2 = ME_FindItemBack(item, diStartRowOrParagraph);
       if (item2->type == diParagraph)




More information about the wine-cvs mailing list