Piotr Caban : comctl32: Fix a typo in UPDOWN_OffsetVal that breaks UDS_WRAP flag support.
Alexandre Julliard
julliard at winehq.org
Mon Oct 28 15:13:04 CDT 2013
Module: wine
Branch: master
Commit: 22a132938229e9fcb33a905787318a96bee4c33c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=22a132938229e9fcb33a905787318a96bee4c33c
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.
---
dlls/comctl32/updown.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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