diff options
| author | Subv <subv2112@gmail.com> | 2017-10-04 11:49:29 -0500 |
|---|---|---|
| committer | Subv <subv2112@gmail.com> | 2017-10-04 12:30:33 -0500 |
| commit | 0cfb231e002629172337c048e8cabc8c653e34e3 (patch) | |
| tree | 217133327f9817305d592cd4eee1d8bed53c8784 /src/core/hle/function_wrappers.h | |
| parent | b863d6c86043226c8c88749c4e0eecaf9865c569 (diff) | |
SVC: Replace GetPointer usage with Read32 in ReplyAndReceive.
Diffstat (limited to 'src/core/hle/function_wrappers.h')
| -rw-r--r-- | src/core/hle/function_wrappers.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index 17892d81c..cd500e83d 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h @@ -69,11 +69,10 @@ void Wrap() { FuncReturn(retval); } -template <ResultCode func(s32*, u32*, s32, u32)> +template <ResultCode func(s32*, VAddr, s32, u32)> void Wrap() { s32 param_1 = 0; - u32 retval = - func(¶m_1, (Kernel::Handle*)Memory::GetPointer(PARAM(1)), (s32)PARAM(2), PARAM(3)).raw; + u32 retval = func(¶m_1, PARAM(1), (s32)PARAM(2), PARAM(3)).raw; Core::CPU().SetReg(1, (u32)param_1); FuncReturn(retval); |
