Re: [PATCH 1/4] comctl32: Set updown control value to min or max in out of range case
28 Oct
2013
28 Oct
'13
8:58 a.m.
On 10/28/13 09:35, Alistair Leslie-Hughes wrote:
On 17/10/2013 1:34 AM, Piotr Caban wrote:
--- dlls/comctl32/updown.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
- } else return FALSE; + } if ((infoPtr->MaxVal > infoPtr->MinVal && infoPtr->CurVal+delta > infoPtr->MaxVal) ^^^ + || (infoPtr->MaxVal < infoPtr->MinVal && infoPtr->CurVal+delta < infoPtr->MaxVal)) { + delta = infoPtr->MaxVal - infoPtr->CurVal;
Should the "if" be one its own line or was the else missed? The 'else' was missed. I've sent a fix for it.
Thanks, Piotr
4431
Age (days ago)
4431
Last active (days ago)
0 comments
1 participants
participants (1)
-
Piotr Caban