diff options
| author | Subv <subv2112@gmail.com> | 2016-04-17 13:36:15 -0500 |
|---|---|---|
| committer | Subv <subv2112@gmail.com> | 2016-05-12 20:00:29 -0500 |
| commit | 42a50da76b816fff95ae0e438d3e966f6f991b8a (patch) | |
| tree | b5363b4ffb961889379c4c1b5873f609d4ad1510 /src/core/hle/function_wrappers.h | |
| parent | 282a2ad539223d61067a1957fab8c45571075987 (diff) | |
Kernel/SVC: Fixed the register order for svcCreateMemoryBlock.
R0 is used as the last parameter instead of R4.
Diffstat (limited to 'src/core/hle/function_wrappers.h')
| -rw-r--r-- | src/core/hle/function_wrappers.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index 4d718b681..bf7f875b6 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h @@ -170,7 +170,8 @@ template<ResultCode func(s64*, u32, s32)> void Wrap() { template<ResultCode func(u32*, u32, u32, u32, u32)> void Wrap() { u32 param_1 = 0; - u32 retval = func(¶m_1, PARAM(1), PARAM(2), PARAM(3), PARAM(4)).raw; + // The last parameter is passed in R0 instead of R4 + u32 retval = func(¶m_1, PARAM(1), PARAM(2), PARAM(3), PARAM(0)).raw; Core::g_app_core->SetReg(1, param_1); FuncReturn(retval); } |
