Don't free subclass stack while it's still in use.

This commit is contained in:
Ge van Geldorp 2004-10-18 23:14:38 +00:00 committed by Alexandre Julliard
parent 4dbe2483dd
commit 4e44eb2c9c
1 changed files with 1 additions and 1 deletions

View File

@ -1293,7 +1293,7 @@ LRESULT WINAPI COMCTL32_SubclassProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
stack->running--; stack->running--;
stack->stackpos = proc; stack->stackpos = proc;
if (!stack->SubclassProcs) { if (!stack->SubclassProcs && !stack->running) {
TRACE("Last Subclass removed, cleaning up\n"); TRACE("Last Subclass removed, cleaning up\n");
/* clean up our heap and reset the origional window procedure */ /* clean up our heap and reset the origional window procedure */
if (IsWindowUnicode (hWnd)) if (IsWindowUnicode (hWnd))