hle_ipc: Add member function for querying the existence of a domain header

Gets rid of the need to call the getter and then check for null.
This commit is contained in:
Lioncash 2018-10-29 23:20:17 -04:00
parent 0cc347462d
commit 6383653a8d
3 changed files with 6 additions and 3 deletions

View file

@ -117,8 +117,7 @@ public:
AlignWithPadding();
const bool request_has_domain_header{context.GetDomainMessageHeader() != nullptr};
if (context.Session()->IsDomain() && request_has_domain_header) {
if (context.Session()->IsDomain() && context.HasDomainMessageHeader()) {
IPC::DomainMessageHeader domain_header{};
domain_header.num_objects = num_domain_objects;
PushRaw(domain_header);