comctl32: Add DebugInfo to critical section.

This commit is contained in:
Jan Zerebecki 2007-02-23 09:26:17 +01:00 committed by Alexandre Julliard
parent 870310b461
commit fa86532354
1 changed files with 2 additions and 0 deletions

View File

@ -803,6 +803,7 @@ static BOOL ANIMATE_Create(HWND hWnd, LPCREATESTRUCTW lpcs)
TRACE("Animate style=0x%08x, parent=%p\n", infoPtr->dwStyle, infoPtr->hwndNotify); TRACE("Animate style=0x%08x, parent=%p\n", infoPtr->dwStyle, infoPtr->hwndNotify);
InitializeCriticalSection(&infoPtr->cs); InitializeCriticalSection(&infoPtr->cs);
infoPtr->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": ANIMATE_INFO*->cs");
return TRUE; return TRUE;
} }
@ -816,6 +817,7 @@ static LRESULT ANIMATE_Destroy(ANIMATE_INFO *infoPtr)
/* free animate info data */ /* free animate info data */
SetWindowLongPtrW(infoPtr->hwndSelf, 0, 0); SetWindowLongPtrW(infoPtr->hwndSelf, 0, 0);
infoPtr->cs.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&infoPtr->cs); DeleteCriticalSection(&infoPtr->cs);
Free(infoPtr); Free(infoPtr);