dlls/comctl32/monthcal.c fix

Nikolay Sivov bunglehead at gmail.com
Tue Oct 6 20:35:07 CDT 2009


Gerald Pfeifer wrote:
> Looking at the code I'm 99.9% sure this should be a logical and here
> in this new code.
>
> Gerald
>
>
> ChangeLog:
> Use local and instead of bitwise and in MONTHCAL_SetDayFocus().
>
> diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
> index a35d261..cd8bd7f 100644
> --- a/dlls/comctl32/monthcal.c
> +++ b/dlls/comctl32/monthcal.c
> @@ -399,7 +399,7 @@ static void MONTHCAL_SetDayFocus(MONTHCAL_INFO *infoPtr, const SYSTEMTIME *st)
>    MONTHCAL_CalcPosFromDay(infoPtr, infoPtr->focusedSel.wDay,
>                                     infoPtr->focusedSel.wMonth, &r);
>  
> -  if(!st & MONTHCAL_ValidateDate(&infoPtr->focusedSel))
> +  if(!st && MONTHCAL_ValidateDate(&infoPtr->focusedSel))
>    {
>      static const SYSTEMTIME st_null;
>   
Hi, Gerald.

Already done:

http://source.winehq.org/git/wine.git/?a=commit;h=87e9e3c37030c293df099395cb0c8e3ef080495a





More information about the wine-devel mailing list