https://git.reactos.org/?p=reactos.git;a=commitdiff;h=be56aff102b28e6580691…
commit be56aff102b28e6580691a1d6b10ba7e21a626f1
Author: George Bișoc <george.bisoc(a)reactos.org>
AuthorDate: Tue Jan 11 11:21:15 2022 +0100
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Tue Jan 11 11:21:15 2022 +0100
[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.
---
ntoskrnl/ps/query.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ntoskrnl/ps/query.c b/ntoskrnl/ps/query.c
index 7211a63e964..7b6f8aecf0e 100644
--- a/ntoskrnl/ps/query.c
+++ b/ntoskrnl/ps/query.c
@@ -210,11 +210,11 @@ NtQueryInformationProcess(
{
/* Get limits from non-default quota block */
QuotaLimits->PagedPoolLimit =
- Process->QuotaBlock->QuotaEntry[PagedPool].Limit;
+ Process->QuotaBlock->QuotaEntry[PsPagedPool].Limit;
QuotaLimits->NonPagedPoolLimit =
- Process->QuotaBlock->QuotaEntry[NonPagedPool].Limit;
+ Process->QuotaBlock->QuotaEntry[PsNonPagedPool].Limit;
QuotaLimits->PagefileLimit =
- Process->QuotaBlock->QuotaEntry[2].Limit;
+ Process->QuotaBlock->QuotaEntry[PsPageFile].Limit;
}
}
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)