forked from ShuriZma/suyu
1
0
Fork 0

kernel: Fix missing peak set in KResourceLimit::SetLimitValue

This commit is contained in:
Morph 2021-06-18 07:27:48 -04:00
parent abb0124b84
commit 1a5eceeb9c
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ ResultCode KResourceLimit::SetLimitValue(LimitableResource which, s64 value) {
R_UNLESS(current_values[index] <= value, ResultInvalidState); R_UNLESS(current_values[index] <= value, ResultInvalidState);
limit_values[index] = value; limit_values[index] = value;
peak_values[index] = current_values[index];
return ResultSuccess; return ResultSuccess;
} }