diff options
| author | bunnei <bunneidev@gmail.com> | 2021-06-26 01:21:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-26 01:21:55 -0700 |
| commit | 432fab7c4f7c8664b2f9319fd6ac6cb8960407e4 (patch) | |
| tree | e4f41221fcdcea3d1a4c0b227c171fc3dec86f7a /src/core/hle/ipc_helpers.h | |
| parent | d9fb6dbd37200487424249042224ac4268b8752b (diff) | |
| parent | 36d581ec73454a50b86c99539e2c60383f9c9bf0 (diff) | |
Merge pull request #6526 from bunnei/doom-update
services: Misc. minor changes for latest SDK update.
Diffstat (limited to 'src/core/hle/ipc_helpers.h')
| -rw-r--r-- | src/core/hle/ipc_helpers.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index 61bda3786..ceff2532d 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h @@ -345,8 +345,12 @@ public: explicit RequestParser(u32* command_buffer) : RequestHelperBase(command_buffer) {} explicit RequestParser(Kernel::HLERequestContext& ctx) : RequestHelperBase(ctx) { - ASSERT_MSG(ctx.GetDataPayloadOffset(), "context is incomplete"); - Skip(ctx.GetDataPayloadOffset(), false); + // TIPC does not have data payload offset + if (!ctx.IsTipc()) { + ASSERT_MSG(ctx.GetDataPayloadOffset(), "context is incomplete"); + Skip(ctx.GetDataPayloadOffset(), false); + } + // Skip the u64 command id, it's already stored in the context static constexpr u32 CommandIdSize = 2; Skip(CommandIdSize, false); |
