[win32k]
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 13 May 2011 08:01:11 +0000 (08:01 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 13 May 2011 08:01:11 +0000 (08:01 +0000)
- When we run out of user handles show count of event and SMWP objects

svn path=/trunk/; revision=51689

reactos/subsystems/win32/win32k/ntuser/object.c

index df97c3c..142f560 100644 (file)
@@ -71,7 +71,7 @@ __inline static PUSER_HANDLE_ENTRY alloc_user_entry(PUSER_HANDLE_TABLE ht)
    {
 /**/
       int i, iFree = 0, iWindow = 0, iMenu = 0, iCursorIcon = 0,
-          iHook = 0, iCallProc = 0, iAccel = 0, iMonitor = 0, iTimer = 0;
+          iHook = 0, iCallProc = 0, iAccel = 0, iMonitor = 0, iTimer = 0, iEvent = 0, iSMWP = 0;
  /**/
       DPRINT1("Out of user handles! Used -> %i, NM_Handle -> %d\n", gpsi->cHandleEntries, ht->nb_handles);
 //#if 0
@@ -106,12 +106,17 @@ __inline static PUSER_HANDLE_ENTRY alloc_user_entry(PUSER_HANDLE_TABLE ht)
            case otTimer:
             iTimer++;
             break;
+           case otEvent:
+            iEvent++;
+            break;
+           case otSMWP:
+            iSMWP++;
            default:
             break;
          }
       }
-      DPRINT1("Handle Count by Type:\n Free = %d Window = %d Menu = %d CursorIcon = %d Hook = %d\n CallProc = %d Accel = %d Monitor = %d Timer = %d\n",
-      iFree, iWindow, iMenu, iCursorIcon, iHook, iCallProc, iAccel, iMonitor, iTimer );
+      DPRINT1("Handle Count by Type:\n Free = %d Window = %d Menu = %d CursorIcon = %d Hook = %d\n CallProc = %d Accel = %d Monitor = %d Timer = %d Event = %d SMWP = %d\n",
+      iFree, iWindow, iMenu, iCursorIcon, iHook, iCallProc, iAccel, iMonitor, iTimer, iEvent, iSMWP );
 //#endif
       return NULL;
 #if 0