mirror of
https://github.com/reactos/reactos.git
synced 2025-05-20 17:45:06 +00: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:
parent
7f6784d4e7
commit
205eadcb84
1 changed files with 5 additions and 1 deletions
|
@ -212,9 +212,13 @@ NtQueryInformationProcess(
|
||||||
/* Get additional information, if needed */
|
/* Get additional information, if needed */
|
||||||
if (Extended)
|
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 */
|
/* FIXME: Get the correct information */
|
||||||
//QuotaLimits.WorkingSetLimit = (SIZE_T)-1; // Not used on Win2k3, it is set to 0
|
//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;
|
QuotaLimits.CpuRateLimit.RateData = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue