[PATCH 1/4] comctl32: Set updown control value to min or max in out of range case

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Mon Oct 28 03:35:28 CDT 2013


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?


Best Regards
  Alistair Leslie-Hughes




More information about the wine-patches mailing list