mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 01:35:47 +00:00
[NTOS:PS] Use quota types on process quota querying
Quota limits on a block are enumerated on a per quota type basis thus we should use the values from PS_QUOTA_TYPE enumeration, not from POOL_TYPE.
This commit is contained in:
parent
4e25c35375
commit
be56aff102
1 changed files with 3 additions and 3 deletions
|
@ -210,11 +210,11 @@ NtQueryInformationProcess(
|
||||||
{
|
{
|
||||||
/* Get limits from non-default quota block */
|
/* Get limits from non-default quota block */
|
||||||
QuotaLimits->PagedPoolLimit =
|
QuotaLimits->PagedPoolLimit =
|
||||||
Process->QuotaBlock->QuotaEntry[PagedPool].Limit;
|
Process->QuotaBlock->QuotaEntry[PsPagedPool].Limit;
|
||||||
QuotaLimits->NonPagedPoolLimit =
|
QuotaLimits->NonPagedPoolLimit =
|
||||||
Process->QuotaBlock->QuotaEntry[NonPagedPool].Limit;
|
Process->QuotaBlock->QuotaEntry[PsNonPagedPool].Limit;
|
||||||
QuotaLimits->PagefileLimit =
|
QuotaLimits->PagefileLimit =
|
||||||
Process->QuotaBlock->QuotaEntry[2].Limit;
|
Process->QuotaBlock->QuotaEntry[PsPageFile].Limit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue