mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 12:43:05 +00:00
Clean up.
svn path=/trunk/; revision=13795
This commit is contained in:
parent
6bcdd89778
commit
c8e6164e8c
1 changed files with 15 additions and 20 deletions
|
@ -820,7 +820,6 @@ ObpGetNextHandleByProcessCount(PSYSTEM_HANDLE_TABLE_ENTRY_INFO pshi,
|
|||
/* Class 16 - Handle Information */
|
||||
QSI_DEF(SystemHandleInformation)
|
||||
{
|
||||
|
||||
PSYSTEM_HANDLE_INFORMATION Shi =
|
||||
(PSYSTEM_HANDLE_INFORMATION) Buffer;
|
||||
|
||||
|
@ -845,6 +844,18 @@ QSI_DEF(SystemHandleInformation)
|
|||
do
|
||||
{
|
||||
hCount = hCount + ObpGetHandleCountByHandleTable(&pr->HandleTable);
|
||||
pr = PsGetNextProcess(pr);
|
||||
|
||||
if ((pr == syspr) || (pr == NULL))
|
||||
break;
|
||||
} while ((pr != syspr) && (pr != NULL));
|
||||
|
||||
DPRINT("SystemHandleInformation 2\n");
|
||||
|
||||
if (pr != NULL)
|
||||
{
|
||||
ObDereferenceObject(pr);
|
||||
}
|
||||
|
||||
curSize = sizeof(SYSTEM_HANDLE_INFORMATION)+
|
||||
( (sizeof(SYSTEM_HANDLE_TABLE_ENTRY_INFO) * hCount) -
|
||||
|
@ -854,26 +865,10 @@ QSI_DEF(SystemHandleInformation)
|
|||
|
||||
if (curSize > Size)
|
||||
{
|
||||
DPRINT1("SystemHandleInformation 2\n");
|
||||
*ReqSize = curSize;
|
||||
if (pr != NULL)
|
||||
{
|
||||
ObDereferenceObject(pr);
|
||||
}
|
||||
return (STATUS_INFO_LENGTH_MISMATCH);
|
||||
}
|
||||
|
||||
pr = PsGetNextProcess(pr);
|
||||
|
||||
if ((pr == syspr) || (pr == NULL))
|
||||
break;
|
||||
} while ((pr != syspr) && (pr != NULL));
|
||||
|
||||
if (pr != NULL)
|
||||
{
|
||||
ObDereferenceObject(pr);
|
||||
}
|
||||
|
||||
DPRINT("SystemHandleInformation 3\n");
|
||||
|
||||
/* Now get Handles from all processs. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue