mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:22:58 +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 */
|
/* Class 16 - Handle Information */
|
||||||
QSI_DEF(SystemHandleInformation)
|
QSI_DEF(SystemHandleInformation)
|
||||||
{
|
{
|
||||||
|
|
||||||
PSYSTEM_HANDLE_INFORMATION Shi =
|
PSYSTEM_HANDLE_INFORMATION Shi =
|
||||||
(PSYSTEM_HANDLE_INFORMATION) Buffer;
|
(PSYSTEM_HANDLE_INFORMATION) Buffer;
|
||||||
|
|
||||||
|
@ -845,35 +844,31 @@ QSI_DEF(SystemHandleInformation)
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
hCount = hCount + ObpGetHandleCountByHandleTable(&pr->HandleTable);
|
hCount = hCount + ObpGetHandleCountByHandleTable(&pr->HandleTable);
|
||||||
|
pr = PsGetNextProcess(pr);
|
||||||
curSize = sizeof(SYSTEM_HANDLE_INFORMATION)+
|
|
||||||
( (sizeof(SYSTEM_HANDLE_TABLE_ENTRY_INFO) * hCount) -
|
|
||||||
(sizeof(SYSTEM_HANDLE_TABLE_ENTRY_INFO) ));
|
|
||||||
|
|
||||||
Shi->NumberOfHandles = hCount;
|
|
||||||
|
|
||||||
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))
|
if ((pr == syspr) || (pr == NULL))
|
||||||
break;
|
break;
|
||||||
} while ((pr != syspr) && (pr != NULL));
|
} while ((pr != syspr) && (pr != NULL));
|
||||||
|
|
||||||
|
DPRINT("SystemHandleInformation 2\n");
|
||||||
|
|
||||||
if (pr != NULL)
|
if (pr != NULL)
|
||||||
{
|
{
|
||||||
ObDereferenceObject(pr);
|
ObDereferenceObject(pr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
curSize = sizeof(SYSTEM_HANDLE_INFORMATION)+
|
||||||
|
( (sizeof(SYSTEM_HANDLE_TABLE_ENTRY_INFO) * hCount) -
|
||||||
|
(sizeof(SYSTEM_HANDLE_TABLE_ENTRY_INFO) ));
|
||||||
|
|
||||||
|
Shi->NumberOfHandles = hCount;
|
||||||
|
|
||||||
|
if (curSize > Size)
|
||||||
|
{
|
||||||
|
*ReqSize = curSize;
|
||||||
|
return (STATUS_INFO_LENGTH_MISMATCH);
|
||||||
|
}
|
||||||
|
|
||||||
DPRINT("SystemHandleInformation 3\n");
|
DPRINT("SystemHandleInformation 3\n");
|
||||||
|
|
||||||
/* Now get Handles from all processs. */
|
/* Now get Handles from all processs. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue