Module: wine Branch: master Commit: 9231452a9c064fa085733befd283025d2133f13b URL: http://source.winehq.org/git/wine.git/?a=commit;h=9231452a9c064fa085733befd2...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Mon Aug 28 00:07:50 2017 +0300
comctl32/monthcal: Initialize day field before setting final hit test result (Valgrind).
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/comctl32/monthcal.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c index 6a10860..e913e71 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 */