summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-12-12 15:14:24 -0500
committerGravatar Lioncash2018-12-12 15:14:28 -0500
commit22230a2ecaad70a2f2ad9ce9932819178c50fa14 (patch)
treef9c27a482807054caf3b55fd569066999dc73597 /src
parentMerge pull request #1846 from lioncash/dir (diff)
downloadyuzu-22230a2ecaad70a2f2ad9ce9932819178c50fa14.tar.gz
yuzu-22230a2ecaad70a2f2ad9ce9932819178c50fa14.tar.xz
yuzu-22230a2ecaad70a2f2ad9ce9932819178c50fa14.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/svc_wrap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc_wrap.h b/src/core/hle/kernel/svc_wrap.h
index 24aef46c9..f38e0cb6f 100644
--- a/src/core/hle/kernel/svc_wrap.h
+++ b/src/core/hle/kernel/svc_wrap.h
@@ -129,7 +129,7 @@ void SvcWrap() {
129template <ResultCode func(u64, u64, u32, u32)> 129template <ResultCode func(u64, u64, u32, u32)>
130void SvcWrap() { 130void SvcWrap() {
131 FuncReturn( 131 FuncReturn(
132 func(Param(0), Param(1), static_cast<u32>(Param(3)), static_cast<u32>(Param(3))).raw); 132 func(Param(0), Param(1), static_cast<u32>(Param(2)), static_cast<u32>(Param(3))).raw);
133} 133}
134 134
135template <ResultCode func(u32, u64, u32)> 135template <ResultCode func(u32, u64, u32)>