aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/function_wrappers.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-10-04 11:40:40 -0500
committerSubv <subv2112@gmail.com>2017-10-04 12:30:32 -0500
commit6fd20a05954e0608138fefc723ef4d25c19cecd9 (patch)
treeb73ef73e6a2f7f7cb7fc0cb9c33ff1f7a5b00291 /src/core/hle/function_wrappers.h
parent82265399029e716ed84dbe9911deb2024d4d62b9 (diff)
SVC: Replace GetPointer usage with Read32 in WaitSynchronizationN.
Diffstat (limited to 'src/core/hle/function_wrappers.h')
-rw-r--r--src/core/hle/function_wrappers.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h
index 5e6002f4ee..17892d81cd 100644
--- a/src/core/hle/function_wrappers.h
+++ b/src/core/hle/function_wrappers.h
@@ -58,12 +58,12 @@ void Wrap() {
FuncReturn(retval);
}
-template <ResultCode func(s32*, u32*, s32, bool, s64)>
+template <ResultCode func(s32*, VAddr, s32, bool, s64)>
void Wrap() {
s32 param_1 = 0;
- s32 retval = func(&param_1, (Kernel::Handle*)Memory::GetPointer(PARAM(1)), (s32)PARAM(2),
- (PARAM(3) != 0), (((s64)PARAM(4) << 32) | PARAM(0)))
- .raw;
+ s32 retval =
+ func(&param_1, PARAM(1), (s32)PARAM(2), (PARAM(3) != 0), (((s64)PARAM(4) << 32) | PARAM(0)))
+ .raw;
Core::CPU().SetReg(1, (u32)param_1);
FuncReturn(retval);