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

svn path=/trunk/; revision=11325
This commit is contained in:
Gé van Geldorp 2004-10-18 21:31:41 +00:00
parent bd1f1924a0
commit 5d5362aca5

View file

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