Skip to content
Snippets Groups Projects
Commit 0cc34746 authored by Lioncash's avatar Lioncash
Browse files

hle_ipc: Make GetDomainMessageHeader return a regular pointer

Nothing requires the shared owner ship here, so we can just return a
plain pointer.
parent b5f8a5f0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment