Piotr Caban : comctl32: Fix a typo in UPDOWN_OffsetVal that breaks UDS_WRAP flag support.

Alexandre Julliard julliard at winehq.org
Fri Jan 10 14:44:53 CST 2014


Module: wine
Branch: stable
Commit: 33134b39457f5eca261c4389ebf1daeacee3402f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=33134b39457f5eca261c4389ebf1daeacee3402f

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Mon Oct 28 09:56:18 2013 +0100

comctl32: Fix a typo in UPDOWN_OffsetVal that breaks UDS_WRAP flag support.

(cherry picked from commit 22a132938229e9fcb33a905787318a96bee4c33c)

---

 dlls/comctl32/updown.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/comctl32/updown.c b/dlls/comctl32/updown.c
index 0761774..23a633e 100644
--- a/dlls/comctl32/updown.c
+++ b/dlls/comctl32/updown.c
@@ -150,7 +150,7 @@ static BOOL UPDOWN_OffsetVal(UPDOWN_INFO *infoPtr, int delta)
 		     (infoPtr->MaxVal < infoPtr->MinVal ? -1 : 1) *
 		     (infoPtr->MinVal - infoPtr->MaxVal) +
 		     (delta < 0 ? 1 : -1);
-        } if ((infoPtr->MaxVal > infoPtr->MinVal && infoPtr->CurVal+delta > infoPtr->MaxVal)
+        } else if ((infoPtr->MaxVal > infoPtr->MinVal && infoPtr->CurVal+delta > infoPtr->MaxVal)
                 || (infoPtr->MaxVal < infoPtr->MinVal && infoPtr->CurVal+delta < infoPtr->MaxVal)) {
             delta = infoPtr->MaxVal - infoPtr->CurVal;
         } else {




More information about the wine-cvs mailing list