summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-07 02:03:36 +0200
committerbunnei <bunneidev@gmail.com>2021-06-07 02:03:36 +0200
commit93f93cb8bc4cf25cbddd2918d0edec786ecce15b (patch)
treea688a862d5c8bb12f27f3e87cf14b697f282db2b /src/core/hle/kernel
parenthle: kernel: hle_ipc: Use default destructor for SessionRequestManager. (diff)
downloadyuzu-93f93cb8bc4cf25cbddd2918d0edec786ecce15b.tar
yuzu-93f93cb8bc4cf25cbddd2918d0edec786ecce15b.tar.gz
yuzu-93f93cb8bc4cf25cbddd2918d0edec786ecce15b.tar.bz2
yuzu-93f93cb8bc4cf25cbddd2918d0edec786ecce15b.tar.lz
yuzu-93f93cb8bc4cf25cbddd2918d0edec786ecce15b.tar.xz
yuzu-93f93cb8bc4cf25cbddd2918d0edec786ecce15b.tar.zst
yuzu-93f93cb8bc4cf25cbddd2918d0edec786ecce15b.zip
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/k_server_session.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_server_session.cpp b/src/core/hle/kernel/k_server_session.cpp
index 3024395dd..96c8d7b0e 100644
--- a/src/core/hle/kernel/k_server_session.cpp
+++ b/src/core/hle/kernel/k_server_session.cpp
@@ -119,9 +119,11 @@ ResultCode KServerSession::QueueSyncRequest(KThread* thread, Core::Memory::Memor
context->PopulateFromIncomingCommandBuffer(kernel.CurrentProcess()->GetHandleTable(), cmd_buf);
- if (auto strong_ptr = manager->GetServiceThread().lock()) {
+ if (auto strong_ptr = manager->GetServiceThread().lock(); strong_ptr) {
strong_ptr->QueueSyncRequest(*parent, std::move(context));
return ResultSuccess;
+ } else {
+ ASSERT(false, "strong_ptr was nullptr!");
}
return ResultSuccess;