yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

hle_ipc: Make GetDomainMessageHeader return a regular pointer

Nothing requires the shared owner ship here, so we can just return a
plain pointer.
This commit is contained in:
Lioncash 2018-10-29 23:18:21 -04:00
parent b5f8a5f0a3
commit 0cc347462d
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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);