André Hentschel : comctl32: Remove dead increments ( clang).

Alexandre Julliard julliard at winehq.org
Thu Jul 28 13:55:39 CDT 2011


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Wed Jul 27 21:08:13 2011 +0200

comctl32: Remove dead increments (clang).

---

 dlls/comctl32/propsheet.c |    1 -
 dlls/comctl32/rebar.c     |    2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c
index f711399..3dd0713 100644
--- a/dlls/comctl32/propsheet.c
+++ b/dlls/comctl32/propsheet.c
@@ -543,7 +543,6 @@ static BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEW lppsp,
   /* Extract the caption */
   psInfo->proppage[index].pszText = p;
   TRACE("Tab %d %s\n",index,debugstr_w( p ));
-  p += lstrlenW( p ) + 1;
 
   if (dwFlags & PSP_USETITLE)
   {
diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c
index 99bde77..4242c64 100644
--- a/dlls/comctl32/rebar.c
+++ b/dlls/comctl32/rebar.c
@@ -1577,7 +1577,7 @@ REBAR_SizeToHeight(REBAR_INFO *infoPtr, int height)
         }
     }
     else
-        extra -= REBAR_SizeChildrenToHeight(infoPtr, first_visible(infoPtr), infoPtr->uNumBands, extra / infoPtr->uNumRows, &fChanged);
+        REBAR_SizeChildrenToHeight(infoPtr, first_visible(infoPtr), infoPtr->uNumBands, extra / infoPtr->uNumRows, &fChanged);
 
     if (fChanged)
         REBAR_Layout(infoPtr);




More information about the wine-cvs mailing list