Browse Source
Merge pull request #6481 from Morph1984/missing-peak-set
kernel: Fix missing peak set in KResourceLimit::SetLimitValue
pull/15/merge
bunnei
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
src/core/hle/kernel/k_resource_limit.cpp
|
|
|
@ -79,6 +79,7 @@ ResultCode KResourceLimit::SetLimitValue(LimitableResource which, s64 value) { |
|
|
|
R_UNLESS(current_values[index] <= value, ResultInvalidState); |
|
|
|
|
|
|
|
limit_values[index] = value; |
|
|
|
peak_values[index] = current_values[index]; |
|
|
|
|
|
|
|
return ResultSuccess; |
|
|
|
} |
|
|
|
|