Don't destroy heap on unload, other DLLs might still depend on it
authorGé van Geldorp <ge@gse.nl>
Sat, 3 Jan 2004 21:59:55 +0000 (21:59 +0000)
committerGé van Geldorp <ge@gse.nl>
Sat, 3 Jan 2004 21:59:55 +0000 (21:59 +0000)
svn path=/trunk/; revision=7432

reactos/lib/comctl32/commctrl.c

index bb1464c..f1dab02 100644 (file)
@@ -219,9 +219,11 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
             TRACE("Subclassing atom deleted: %p\n", COMCTL32_aSubclass);
             COMCTL32_aSubclass = NULL;
 
+#if 0 /* Can't destroy heap, other DLLs might have DPA items in it */
             /* destroy private heap */
             HeapDestroy (COMCTL32_hHeap);
             TRACE("Heap destroyed: %p\n", COMCTL32_hHeap);
+#endif
             COMCTL32_hHeap = NULL;
             break;
     }