summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-30 04:18:21 +0100
committerLioncash <mathew1800@gmail.com>2018-10-30 04:18:25 +0100
commit0cc347462d3a6992a6d66ccd69629a71cd500cb3 (patch)
tree0a27c0b7e193835a4824518c3b19524bb345aaef
parentMerge pull request #1607 from FearlessTobi/patch-3 (diff)
downloadyuzu-0cc347462d3a6992a6d66ccd69629a71cd500cb3.tar
yuzu-0cc347462d3a6992a6d66ccd69629a71cd500cb3.tar.gz
yuzu-0cc347462d3a6992a6d66ccd69629a71cd500cb3.tar.bz2
yuzu-0cc347462d3a6992a6d66ccd69629a71cd500cb3.tar.lz
yuzu-0cc347462d3a6992a6d66ccd69629a71cd500cb3.tar.xz
yuzu-0cc347462d3a6992a6d66ccd69629a71cd500cb3.tar.zst
yuzu-0cc347462d3a6992a6d66ccd69629a71cd500cb3.zip
-rw-r--r--src/core/hle/kernel/hle_ipc.h4
-rw-r--r--src/core/hle/kernel/server_session.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h
index f01491daa..2e49826a8 100644
--- a/src/core/hle/kernel/hle_ipc.h
+++ b/src/core/hle/kernel/hle_ipc.h
@@ -161,8 +161,8 @@ public:
return buffer_c_desciptors;
}
- const std::shared_ptr<IPC::DomainMessageHeader>& GetDomainMessageHeader() const {
- return domain_message_header;
+ const IPC::DomainMessageHeader* GetDomainMessageHeader() const {
+ return domain_message_header.get();
}
/// Helper function to read a buffer using the appropriate buffer descriptor
diff --git a/src/core/hle/kernel/server_session.cpp b/src/core/hle/kernel/server_session.cpp
index 5fc320403..afb3beed2 100644
--- a/src/core/hle/kernel/server_session.cpp
+++ b/src/core/hle/kernel/server_session.cpp
@@ -63,7 +63,7 @@ void ServerSession::Acquire(Thread* thread) {
}
ResultCode ServerSession::HandleDomainSyncRequest(Kernel::HLERequestContext& context) {
- auto& domain_message_header = context.GetDomainMessageHeader();
+ auto* const domain_message_header = context.GetDomainMessageHeader();
if (domain_message_header) {
// Set domain handlers in HLE context, used for domain objects (IPC interfaces) as inputs
context.SetDomainRequestHandlers(domain_request_handlers);