print out some useful info before we go belly-up
authorRoyce Mitchell III <royce3@ev1.net>
Sat, 17 Dec 2005 05:47:19 +0000 (05:47 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Sat, 17 Dec 2005 05:47:19 +0000 (05:47 +0000)
svn path=/trunk/; revision=20215

reactos/subsys/win32k/ntuser/class.c

index 2ed50a6..ae3b744 100644 (file)
@@ -66,6 +66,16 @@ ClassRefObject(PWNDCLASS_OBJECT Class)
 
 VOID FASTCALL DestroyClass(PWNDCLASS_OBJECT Class)
 {
+#if defined(DBG) || defined(KDBG)
+   if ( Class->refs != 0 )
+   {
+      WCHAR AtomName[256];
+      ULONG AtomNameLen = sizeof(AtomName);
+      RtlQueryAtomInAtomTable ( gAtomTable, Class->Atom,
+         NULL, NULL, AtomName, &AtomNameLen );
+      DPRINT1("DestroyClass(): can't delete class = '%ws', b/c refs = %lu\n", AtomName, Class->refs );
+   }
+#endif
    ASSERT(Class->refs == 0);
    
    RemoveEntryList(&Class->ListEntry);