[PATCH 1/3] comctl32/monthcal: Initialize day field before setting final hit test result (Valgrind)

Nikolay Sivov nsivov at codeweavers.com
Sun Aug 27 16:07:50 CDT 2017


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/comctl32/monthcal.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
index 6a1086009b..e913e71623 100644
--- a/dlls/comctl32/monthcal.c
+++ b/dlls/comctl32/monthcal.c
@@ -1907,6 +1907,7 @@ MONTHCAL_HitTest(const MONTHCAL_INFO *infoPtr, MCHITTESTINFO *lpht)
   else if(PtInRect(&infoPtr->calendars[calIdx].days, lpht->pt))
   {
       htinfo.iOffset = calIdx;
+      htinfo.st.wDay = ht_month->wDay;
       htinfo.st.wYear  = ht_month->wYear;
       htinfo.st.wMonth = ht_month->wMonth;
       /* previous month only valid for first calendar */
-- 
2.14.1




More information about the wine-patches mailing list