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

Alexandre Julliard julliard at winehq.org
Tue Oct 18 12:56:26 CDT 2011


Module: wine
Branch: master
Commit: ea96417f83fad63b696f0a7132aca89ada11b8ff
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ea96417f83fad63b696f0a7132aca89ada11b8ff

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Oct 16 10:19:52 2011 -0500

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

---

 dlls/comctl32/monthcal.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
index 0c51075..83adf60 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++)




More information about the wine-cvs mailing list