diff options
| author | bunnei <bunneidev@gmail.com> | 2018-02-26 20:52:56 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-26 20:52:56 -0800 |
| commit | 926604fc14f102dd05db9ea05cb3b60af7164ab7 (patch) | |
| tree | 0403148f780b5dc947802c666ba6996b53446880 /src/core/hle/ipc_helpers.h | |
| parent | f1beb69899d9706f0ac37e13703496f6bb75e09c (diff) | |
| parent | 1289a3c3c154b198e44ceff3097bd8a50039b23a (diff) | |
Merge pull request #207 from mailwl/duplicatesession
IPC: add domain header to response if only it exists in request
Diffstat (limited to 'src/core/hle/ipc_helpers.h')
| -rw-r--r-- | src/core/hle/ipc_helpers.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index 6066d8a18..3f87c4297 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h @@ -118,7 +118,8 @@ public: AlignWithPadding(); - if (context.Session()->IsDomain()) { + const bool request_has_domain_header{context.GetDomainMessageHeader() != nullptr}; + if (context.Session()->IsDomain() && request_has_domain_header) { IPC::DomainMessageHeader domain_header{}; domain_header.num_objects = num_domain_objects; PushRaw(domain_header); |
