From 4e44eb2c9c5536db27a677c31792ffd16727f4ca Mon Sep 17 00:00:00 2001 From: Ge van Geldorp Date: Mon, 18 Oct 2004 23:14:38 +0000 Subject: [PATCH] Don't free subclass stack while it's still in use. --- dlls/comctl32/commctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/commctrl.c b/dlls/comctl32/commctrl.c index 78e21e7e689..798ed47859d 100644 --- a/dlls/comctl32/commctrl.c +++ b/dlls/comctl32/commctrl.c @@ -1293,7 +1293,7 @@ LRESULT WINAPI COMCTL32_SubclassProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARA stack->running--; stack->stackpos = proc; - if (!stack->SubclassProcs) { + if (!stack->SubclassProcs && !stack->running) { TRACE("Last Subclass removed, cleaning up\n"); /* clean up our heap and reset the origional window procedure */ if (IsWindowUnicode (hWnd))