Explorar o código

kernel: Fix missing peak set in KResourceLimit::SetLimitValue

Morph %!s(int64=5) %!d(string=hai) anos
pai
achega
1a5eceeb9c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/core/hle/kernel/k_resource_limit.cpp

+ 1 - 0
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;
 }