Reactos

[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.

+3 -3
+3 -3
ntoskrnl/ps/query.c
··· 210 210 { 211 211 /* Get limits from non-default quota block */ 212 212 QuotaLimits->PagedPoolLimit = 213 - Process->QuotaBlock->QuotaEntry[PagedPool].Limit; 213 + Process->QuotaBlock->QuotaEntry[PsPagedPool].Limit; 214 214 QuotaLimits->NonPagedPoolLimit = 215 - Process->QuotaBlock->QuotaEntry[NonPagedPool].Limit; 215 + Process->QuotaBlock->QuotaEntry[PsNonPagedPool].Limit; 216 216 QuotaLimits->PagefileLimit = 217 - Process->QuotaBlock->QuotaEntry[2].Limit; 217 + Process->QuotaBlock->QuotaEntry[PsPageFile].Limit; 218 218 } 219 219 } 220 220 _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)