kern: fix SvcGetResourceLimitPeakValue

This commit is contained in:
Michael Scire 2020-12-01 19:29:17 -08:00
parent 24db70602f
commit 8e1a46b951

View file

@ -62,7 +62,7 @@ namespace ams::kern::svc {
R_UNLESS(resource_limit.IsNotNull(), svc::ResultInvalidHandle());
/* Get the peak value. */
*out_peak_value = resource_limit->GetCurrentValue(which);
*out_peak_value = resource_limit->GetPeakValue(which);
return ResultSuccess();
}