From 834a1e6d6766f1727b364cf373ad4f913e9f221d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 12 Dec 2018 15:14:24 -0500 Subject: [PATCH] svc_wrap: Correct register index for a wrapper specialization This would result in svcSetMemoryAttribute getting the wrong value for its third parameter. This is currently fine, given the service function is stubbed, however this will be unstubbed in a future change, so this needs to change. --- src/core/hle/kernel/svc_wrap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/kernel/svc_wrap.h b/src/core/hle/kernel/svc_wrap.h index 24aef46c93..f38e0cb6fe 100644 --- a/src/core/hle/kernel/svc_wrap.h +++ b/src/core/hle/kernel/svc_wrap.h @@ -129,7 +129,7 @@ void SvcWrap() { template void SvcWrap() { FuncReturn( - func(Param(0), Param(1), static_cast(Param(3)), static_cast(Param(3))).raw); + func(Param(0), Param(1), static_cast(Param(2)), static_cast(Param(3))).raw); } template