dlls/comctl32/commctrl.c

Ge van Geldorp gvg at reactos.com
Mon Oct 18 16:50:00 CDT 2004


Changelog:
  Ge van Geldorp <gvg at reactos.com>
  - Don't free subclass stack while it's still in use

Index: dlls/comctl32/commctrl.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/commctrl.c,v
retrieving revision 1.86
diff -u -r1.86 commctrl.c
--- dlls/comctl32/commctrl.c	22 Sep 2004 19:10:47 -0000	1.86
+++ dlls/comctl32/commctrl.c	18 Oct 2004 21:46:07 -0000
@@ -1293,7 +1293,7 @@
    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))



More information about the wine-patches mailing list