diff options
author | mailwl <mailwl@gmail.com> | 2018-02-20 19:59:58 +0100 |
---|---|---|
committer | mailwl <mailwl@gmail.com> | 2018-02-20 19:59:58 +0100 |
commit | 827152d1fd72d13b47b331f64455fc2a641877b1 (patch) | |
tree | 7233f6661549d2c0d1de8c037c7124f47b3f57b4 /src/core/hle/ipc_helpers.h | |
parent | IPC: add domain header to response if only it exists in request (diff) | |
download | yuzu-827152d1fd72d13b47b331f64455fc2a641877b1.tar yuzu-827152d1fd72d13b47b331f64455fc2a641877b1.tar.gz yuzu-827152d1fd72d13b47b331f64455fc2a641877b1.tar.bz2 yuzu-827152d1fd72d13b47b331f64455fc2a641877b1.tar.lz yuzu-827152d1fd72d13b47b331f64455fc2a641877b1.tar.xz yuzu-827152d1fd72d13b47b331f64455fc2a641877b1.tar.zst yuzu-827152d1fd72d13b47b331f64455fc2a641877b1.zip |
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 97290fec5..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() && context.GetDomainMessageHeader()) { + 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); |