Skip to content

Commit

Permalink
[NTOS:PS] Fix returned flags for QUOTA_LIMITS_EX query (reactos#7589)
Browse files Browse the repository at this point in the history
Use the information from EPROCESS::Vm.
Addendum to commit 1e06829.
  • Loading branch information
TAN-Gaming authored Jan 1, 2025
1 parent 7f6784d commit 205eadc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ntoskrnl/ps/query.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 205eadc

Please sign in to comment.