[ros-diffs] [jimtabor] 31220: Use long for HandleIndex.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Fri Dec 14 19:02:22 CET 2007


Author: jimtabor
Date: Fri Dec 14 21:02:22 2007
New Revision: 31220

URL: http://svn.reactos.org/svn/reactos?rev=31220&view=rev
Log:
Use long for HandleIndex.

Modified:
    trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c

Modified: trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c?rev=31220&r1=31219&r2=31220&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c Fri Dec 14 21:02:22 2007
@@ -238,7 +238,7 @@
 	DPRINT1("reporting gdi handle abusers:\n");
 
 	/* step through GDI handle table and find out who our culprit is... */
-	for ( i = RESERVE_ENTRIES_COUNT; i < GDI_HANDLE_COUNT-1; i++ )
+	for ( i = RESERVE_ENTRIES_COUNT; i < GDI_HANDLE_COUNT; i++ )
 	{
 		for ( j = 0; j < n; j++ )
 		{
@@ -776,7 +776,7 @@
 GDIOBJ_LockObj (PGDI_HANDLE_TABLE HandleTable, HGDIOBJ hObj, DWORD ExpectedType)
 #endif /* GDI_DEBUG */
 {
-   USHORT HandleIndex;
+   ULONG HandleIndex;
    PGDI_TABLE_ENTRY Entry;
    HANDLE ProcessId, HandleProcessId, LockedProcessId, PrevProcId;
    PGDIOBJ Object = NULL;
@@ -787,7 +787,7 @@
    HandleUpper = GDI_HANDLE_GET_UPPER(hObj);
 
    /* Check that the handle index is valid. */
-   if (HandleIndex >= GDI_HANDLE_COUNT-1)
+   if (HandleIndex >= GDI_HANDLE_COUNT)
       return NULL;
 
    Entry = &HandleTable->Entries[HandleIndex];
@@ -924,7 +924,7 @@
 GDIOBJ_ShareLockObj (PGDI_HANDLE_TABLE HandleTable, HGDIOBJ hObj, DWORD ExpectedType)
 #endif /* GDI_DEBUG */
 {
-   USHORT HandleIndex;
+   ULONG HandleIndex;
    PGDI_TABLE_ENTRY Entry;
    HANDLE ProcessId, HandleProcessId, LockedProcessId, PrevProcId;
    PGDIOBJ Object = NULL;
@@ -935,7 +935,7 @@
    HandleUpper = GDI_HANDLE_GET_UPPER(hObj);
 
    /* Check that the handle index is valid. */
-   if (HandleIndex >= GDI_HANDLE_COUNT-1)
+   if (HandleIndex >= GDI_HANDLE_COUNT)
       return NULL;
 
    /* Check if we have the requested type */




More information about the Ros-diffs mailing list