Skip to content
Snippets Groups Projects
Commit 4e44eb2c authored by Ge van Geldorp's avatar Ge van Geldorp Committed by Alexandre Julliard
Browse files

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

parent 4dbe2483
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment