mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
kernel: Fix missing peak set in KResourceLimit::SetLimitValue
This commit is contained in:
parent
abb0124b84
commit
1a5eceeb9c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue