diff options
author | bunnei <bunneidev@gmail.com> | 2022-03-11 08:45:54 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-03-15 02:14:53 +0100 |
commit | 07c9d9bdbdbf632624ca01ea83dbfa51176415ae (patch) | |
tree | 7c9a425ed2c7397e679d24356e36ab54372c7755 /src/core/hle/kernel/k_server_session.cpp | |
parent | core: hle: kernel: k_memory_layout: Update kernel slab memory sizes. (diff) | |
download | yuzu-07c9d9bdbdbf632624ca01ea83dbfa51176415ae.tar yuzu-07c9d9bdbdbf632624ca01ea83dbfa51176415ae.tar.gz yuzu-07c9d9bdbdbf632624ca01ea83dbfa51176415ae.tar.bz2 yuzu-07c9d9bdbdbf632624ca01ea83dbfa51176415ae.tar.lz yuzu-07c9d9bdbdbf632624ca01ea83dbfa51176415ae.tar.xz yuzu-07c9d9bdbdbf632624ca01ea83dbfa51176415ae.tar.zst yuzu-07c9d9bdbdbf632624ca01ea83dbfa51176415ae.zip |
Diffstat (limited to 'src/core/hle/kernel/k_server_session.cpp')
-rw-r--r-- | src/core/hle/kernel/k_server_session.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_server_session.cpp b/src/core/hle/kernel/k_server_session.cpp index 4d94eb9cf..9cfbcbbc9 100644 --- a/src/core/hle/kernel/k_server_session.cpp +++ b/src/core/hle/kernel/k_server_session.cpp @@ -98,7 +98,12 @@ ResultCode KServerSession::HandleDomainSyncRequest(Kernel::HLERequestContext& co UNREACHABLE(); return ResultSuccess; // Ignore error if asserts are off } - return manager->DomainHandler(object_id - 1)->HandleSyncRequest(*this, context); + if (auto strong_ptr = manager->DomainHandler(object_id - 1).lock()) { + return strong_ptr->HandleSyncRequest(*this, context); + } else { + UNREACHABLE(); + return ResultSuccess; + } case IPC::DomainMessageHeader::CommandType::CloseVirtualHandle: { LOG_DEBUG(IPC, "CloseVirtualHandle, object_id=0x{:08X}", object_id); |