Commit ea96417f authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/monthcal: Update pointer after reallocation (Valgrind).

parent 61e82e2c
......@@ -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++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment