mirror of
https://github.com/reactos/reactos.git
synced 2026-05-07 23:36:33 +08:00
[NTOS:PS] Fix returned flags for QUOTA_LIMITS_EX query (#7589)
Use the information from EPROCESS::Vm.
Addendum to commit 1e06829961.
This commit is contained in:
committed by
GitHub
parent
7f6784d4e7
commit
205eadcb84
@@ -212,9 +212,13 @@ NtQueryInformationProcess(
|
||||
/* Get additional information, if needed */
|
||||
if (Extended)
|
||||
{
|
||||
QuotaLimits.Flags |= (Process->Vm.Flags.MaximumWorkingSetHard ?
|
||||
QUOTA_LIMITS_HARDWS_MAX_ENABLE : QUOTA_LIMITS_HARDWS_MAX_DISABLE);
|
||||
QuotaLimits.Flags |= (Process->Vm.Flags.MinimumWorkingSetHard ?
|
||||
QUOTA_LIMITS_HARDWS_MIN_ENABLE : QUOTA_LIMITS_HARDWS_MIN_DISABLE);
|
||||
|
||||
/* FIXME: Get the correct information */
|
||||
//QuotaLimits.WorkingSetLimit = (SIZE_T)-1; // Not used on Win2k3, it is set to 0
|
||||
QuotaLimits.Flags = QUOTA_LIMITS_HARDWS_MIN_DISABLE | QUOTA_LIMITS_HARDWS_MAX_DISABLE;
|
||||
QuotaLimits.CpuRateLimit.RateData = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user