dlls/comctl32/monthcal.c fix

Gerald Pfeifer gerald at pfeifer.com
Tue Oct 6 09:09:56 CDT 2009


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;
 



More information about the wine-patches mailing list