Author: gadamopoulos
Date: Fri May 13 08:01:11 2011
New Revision: 51689

URL: http://svn.reactos.org/svn/reactos?rev=51689&view=rev
Log:
[win32k]
- When we run out of user handles show count of event and SMWP objects

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/object.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/object.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/object.c?rev=51689&r1=51688&r2=51689&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/object.c [iso-8859-1] 
(original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/object.c [iso-8859-1] Fri May 
13 08:01:11 2011
@@ -71,7 +71,7 @@
    {
 /**/
       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 @@
            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


Reply via email to