SVC: Replace GetPointer usage with Read32 in ReplyAndReceive.
This commit is contained in:
parent
b863d6c860
commit
0cfb231e00
2 changed files with 6 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue