From ea96417f83fad63b696f0a7132aca89ada11b8ff Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sun, 16 Oct 2011 10:19:52 -0500 Subject: [PATCH] comctl32/monthcal: Update pointer after reallocation (Valgrind). --- dlls/comctl32/monthcal.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c index 0c51075938f..83adf600c98 100644 --- a/dlls/comctl32/monthcal.c +++ b/dlls/comctl32/monthcal.c @@ -2543,6 +2543,11 @@ static void MONTHCAL_UpdateSize(MONTHCAL_INFO *infoPtr) infoPtr->monthdayState = ReAlloc(infoPtr->monthdayState, MONTHCAL_GetMonthRange(infoPtr, GMR_DAYSTATE, 0)*sizeof(MONTHDAYSTATE)); MONTHCAL_NotifyDayState(infoPtr); + + /* update pointers that we'll need */ + title = &infoPtr->calendars[0].title; + wdays = &infoPtr->calendars[0].wdays; + days = &infoPtr->calendars[0].days; } for (i = 1; i < MONTHCAL_GetCalCount(infoPtr); i++)