James Hawkins : comctl32: Fix MCM_SETFIRSTDAYOFWEEK when the first day set is greater than max allowed .

Alexandre Julliard julliard at winehq.org
Fri Oct 10 08:06:34 CDT 2008


Module: wine
Branch: master
Commit: a7762476f2206cf0b2d96e5a57591fc1ba264c41
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a7762476f2206cf0b2d96e5a57591fc1ba264c41

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Thu Oct  9 18:02:06 2008 -0500

comctl32: Fix MCM_SETFIRSTDAYOFWEEK when the first day set is greater than max allowed.

---

 dlls/comctl32/monthcal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
index a3f9658..4125ea1 100644
--- a/dlls/comctl32/monthcal.c
+++ b/dlls/comctl32/monthcal.c
@@ -913,7 +913,7 @@ MONTHCAL_SetFirstDayOfWeek(MONTHCAL_INFO *infoPtr, LPARAM lParam)
   }
   else if(lParam >= 7)
   {
-    infoPtr->firstDay = localFirstDay;
+    infoPtr->firstDay = 6; /* max first day allowed */
     infoPtr->firstDayHighWord = TRUE;
   }
   else




More information about the wine-cvs mailing list