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

This commit is contained in:
Piotr Caban 2013-10-28 09:56:18 +01:00 committed by Alexandre Julliard
parent d97a36c51f
commit 22a1329382
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ static BOOL UPDOWN_OffsetVal(UPDOWN_INFO *infoPtr, int delta)
(infoPtr->MaxVal < infoPtr->MinVal ? -1 : 1) * (infoPtr->MaxVal < infoPtr->MinVal ? -1 : 1) *
(infoPtr->MinVal - infoPtr->MaxVal) + (infoPtr->MinVal - infoPtr->MaxVal) +
(delta < 0 ? 1 : -1); (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)) { || (infoPtr->MaxVal < infoPtr->MinVal && infoPtr->CurVal+delta < infoPtr->MaxVal)) {
delta = infoPtr->MaxVal - infoPtr->CurVal; delta = infoPtr->MaxVal - infoPtr->CurVal;
} else { } else {