diff options
| author | Subv <subv2112@gmail.com> | 2018-01-06 23:19:42 -0500 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2018-01-07 17:11:45 -0500 |
| commit | b0ceb4df70c8a387e12e2df0d1031421493ad744 (patch) | |
| tree | fbe37a5849d34de75250fd12bc7403cc3c1ea4ad /src/core/hle/kernel | |
| parent | 226786f0b05405b4c0287786f106ae2e08feefec (diff) | |
IPC: Skip the entire u64 of the command id when receiving an IPC request.
Service code now doesn't have to deal with this.
Diffstat (limited to 'src/core/hle/kernel')
| -rw-r--r-- | src/core/hle/kernel/hle_ipc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/hle_ipc.cpp b/src/core/hle/kernel/hle_ipc.cpp index e784d59cc..ac81dbf3f 100644 --- a/src/core/hle/kernel/hle_ipc.cpp +++ b/src/core/hle/kernel/hle_ipc.cpp @@ -107,8 +107,9 @@ void HLERequestContext::ParseCommandBuffer(u32_le* src_cmdbuf, bool incoming) { ASSERT(data_payload_header->magic == Common::MakeMagic('S', 'F', 'C', 'O')); } - data_payload_offset = rp.GetCurrentOffset(); command = rp.Pop<u32_le>(); + rp.Skip(1, false); // The command is actually an u64, but we don't use the high part. + data_payload_offset = rp.GetCurrentOffset(); } ResultCode HLERequestContext::PopulateFromIncomingCommandBuffer(u32_le* src_cmdbuf, |
