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

This commit is contained in:
Nikolay Sivov 2011-10-16 10:19:52 -05:00 committed by Alexandre Julliard
parent 61e82e2c8c
commit ea96417f83
1 changed files with 5 additions and 0 deletions

View File

@ -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++)