mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:42:57 +00:00
Use long for HandleIndex.
svn path=/trunk/; revision=31220
This commit is contained in:
parent
24f650c712
commit
716baf379c
1 changed files with 5 additions and 5 deletions
|
@ -238,7 +238,7 @@ void IntDumpHandleTable(PGDI_HANDLE_TABLE HandleTable)
|
||||||
DPRINT1("reporting gdi handle abusers:\n");
|
DPRINT1("reporting gdi handle abusers:\n");
|
||||||
|
|
||||||
/* step through GDI handle table and find out who our culprit is... */
|
/* 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++ )
|
for ( j = 0; j < n; j++ )
|
||||||
{
|
{
|
||||||
|
@ -776,7 +776,7 @@ GDIOBJ_LockObjDbg (PGDI_HANDLE_TABLE HandleTable, const char* file, int line, HG
|
||||||
GDIOBJ_LockObj (PGDI_HANDLE_TABLE HandleTable, HGDIOBJ hObj, DWORD ExpectedType)
|
GDIOBJ_LockObj (PGDI_HANDLE_TABLE HandleTable, HGDIOBJ hObj, DWORD ExpectedType)
|
||||||
#endif /* GDI_DEBUG */
|
#endif /* GDI_DEBUG */
|
||||||
{
|
{
|
||||||
USHORT HandleIndex;
|
ULONG HandleIndex;
|
||||||
PGDI_TABLE_ENTRY Entry;
|
PGDI_TABLE_ENTRY Entry;
|
||||||
HANDLE ProcessId, HandleProcessId, LockedProcessId, PrevProcId;
|
HANDLE ProcessId, HandleProcessId, LockedProcessId, PrevProcId;
|
||||||
PGDIOBJ Object = NULL;
|
PGDIOBJ Object = NULL;
|
||||||
|
@ -787,7 +787,7 @@ GDIOBJ_LockObj (PGDI_HANDLE_TABLE HandleTable, HGDIOBJ hObj, DWORD ExpectedType)
|
||||||
HandleUpper = GDI_HANDLE_GET_UPPER(hObj);
|
HandleUpper = GDI_HANDLE_GET_UPPER(hObj);
|
||||||
|
|
||||||
/* Check that the handle index is valid. */
|
/* Check that the handle index is valid. */
|
||||||
if (HandleIndex >= GDI_HANDLE_COUNT-1)
|
if (HandleIndex >= GDI_HANDLE_COUNT)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
Entry = &HandleTable->Entries[HandleIndex];
|
Entry = &HandleTable->Entries[HandleIndex];
|
||||||
|
@ -924,7 +924,7 @@ GDIOBJ_ShareLockObjDbg (PGDI_HANDLE_TABLE HandleTable, const char* file, int lin
|
||||||
GDIOBJ_ShareLockObj (PGDI_HANDLE_TABLE HandleTable, HGDIOBJ hObj, DWORD ExpectedType)
|
GDIOBJ_ShareLockObj (PGDI_HANDLE_TABLE HandleTable, HGDIOBJ hObj, DWORD ExpectedType)
|
||||||
#endif /* GDI_DEBUG */
|
#endif /* GDI_DEBUG */
|
||||||
{
|
{
|
||||||
USHORT HandleIndex;
|
ULONG HandleIndex;
|
||||||
PGDI_TABLE_ENTRY Entry;
|
PGDI_TABLE_ENTRY Entry;
|
||||||
HANDLE ProcessId, HandleProcessId, LockedProcessId, PrevProcId;
|
HANDLE ProcessId, HandleProcessId, LockedProcessId, PrevProcId;
|
||||||
PGDIOBJ Object = NULL;
|
PGDIOBJ Object = NULL;
|
||||||
|
@ -935,7 +935,7 @@ GDIOBJ_ShareLockObj (PGDI_HANDLE_TABLE HandleTable, HGDIOBJ hObj, DWORD Expected
|
||||||
HandleUpper = GDI_HANDLE_GET_UPPER(hObj);
|
HandleUpper = GDI_HANDLE_GET_UPPER(hObj);
|
||||||
|
|
||||||
/* Check that the handle index is valid. */
|
/* Check that the handle index is valid. */
|
||||||
if (HandleIndex >= GDI_HANDLE_COUNT-1)
|
if (HandleIndex >= GDI_HANDLE_COUNT)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
/* Check if we have the requested type */
|
/* Check if we have the requested type */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue