Explorar o código

Kernel: Fix SVC wrapper for CreatePort

The return parameters were flipped.
Yuri Kunde Schlesner %!s(int64=9) %!d(string=hai) anos
pai
achega
8c6a8edaca
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      src/core/hle/function_wrappers.h

+ 2 - 3
src/core/hle/function_wrappers.h

@@ -226,9 +226,8 @@ void Wrap() {
     u32 retval = func(&param_1, &param_2,
     u32 retval = func(&param_1, &param_2,
                       reinterpret_cast<const char*>(Memory::GetPointer(PARAM(2))), PARAM(3))
                       reinterpret_cast<const char*>(Memory::GetPointer(PARAM(2))), PARAM(3))
                      .raw;
                      .raw;
-    // The first out parameter is moved into R2 and the second is moved into R1.
-    Core::CPU().SetReg(1, param_2);
-    Core::CPU().SetReg(2, param_1);
+    Core::CPU().SetReg(1, param_1);
+    Core::CPU().SetReg(2, param_2);
     FuncReturn(retval);
     FuncReturn(retval);
 }
 }