Nikolay Sivov : comctl32/monthcal: Fix hit test for previous month.

Alexandre Julliard julliard at winehq.org
Mon Mar 28 14:22:00 CDT 2011


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sat Mar 26 04:05:59 2011 +0300

comctl32/monthcal: Fix hit test for previous month.

---

 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 745ccbd..28af051 100644
--- a/dlls/comctl32/monthcal.c
+++ b/dlls/comctl32/monthcal.c
@@ -1727,7 +1727,7 @@ MONTHCAL_HitTest(const MONTHCAL_INFO *infoPtr, MCHITTESTINFO *lpht)
       {
 	  htinfo.uHit = MCHT_CALENDARDATEPREV;
 	  MONTHCAL_GetPrevMonth(&htinfo.st);
-	  htinfo.st.wDay = MONTHCAL_MonthLength(lpht->st.wMonth, lpht->st.wYear) + day;
+	  htinfo.st.wDay = MONTHCAL_MonthLength(htinfo.st.wMonth, htinfo.st.wYear) + day;
       }
       else if (day > MONTHCAL_MonthLength(ht_month.wMonth, ht_month.wYear))
       {




More information about the wine-cvs mailing list