Commit 4e44eb2c authored by Ge van Geldorp's avatar Ge van Geldorp Committed by Alexandre Julliard

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

parent 4dbe2483
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment