hle: hle_helpers: Skip data payload offset checks on TIPC requests.
- TIPC does not use this.
This commit is contained in:
parent
3565e32f4d
commit
982be246ab
@ -345,8 +345,12 @@ public:
|
|||||||
explicit RequestParser(u32* command_buffer) : RequestHelperBase(command_buffer) {}
|
explicit RequestParser(u32* command_buffer) : RequestHelperBase(command_buffer) {}
|
||||||
|
|
||||||
explicit RequestParser(Kernel::HLERequestContext& ctx) : RequestHelperBase(ctx) {
|
explicit RequestParser(Kernel::HLERequestContext& ctx) : RequestHelperBase(ctx) {
|
||||||
ASSERT_MSG(ctx.GetDataPayloadOffset(), "context is incomplete");
|
// TIPC does not have data payload offset
|
||||||
Skip(ctx.GetDataPayloadOffset(), false);
|
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
|
// Skip the u64 command id, it's already stored in the context
|
||||||
static constexpr u32 CommandIdSize = 2;
|
static constexpr u32 CommandIdSize = 2;
|
||||||
Skip(CommandIdSize, false);
|
Skip(CommandIdSize, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user