Nikolay Sivov : comctl32/monthcal: Initialize day field before setting final hit test result (Valgrind).

Alexandre Julliard julliard at winehq.org
Tue Jan 2 15:01:23 CST 2018


Module: wine
Branch: stable
Commit: 84c984960e8538a08c8cddb0ffe53b7babf82868
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=84c984960e8538a08c8cddb0ffe53b7babf82868

Author: Nikolay Sivov <nsivov at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 9231452a9c064fa085733befd283025d2133f13b)
Signed-off-by: Michael Stefaniuc <mstefani at 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 4a9a81e..97e0c8c 100644
--- a/dlls/comctl32/monthcal.c
+++ b/dlls/comctl32/monthcal.c
@@ -1916,6 +1916,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 */




More information about the wine-cvs mailing list