diff options
author | bunnei <bunneidev@gmail.com> | 2021-06-07 02:54:06 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-06-07 02:54:06 +0200 |
commit | ada4242c014d791379c02bf4222a39a9e881a692 (patch) | |
tree | 6a9e153008d7b927cec278c0d481a2be04cb5736 /src/core/hle/kernel/hle_ipc.h | |
parent | hle: kernel: k_server_session: Ensure service thread is valid before dereference. (diff) | |
download | yuzu-ada4242c014d791379c02bf4222a39a9e881a692.tar yuzu-ada4242c014d791379c02bf4222a39a9e881a692.tar.gz yuzu-ada4242c014d791379c02bf4222a39a9e881a692.tar.bz2 yuzu-ada4242c014d791379c02bf4222a39a9e881a692.tar.lz yuzu-ada4242c014d791379c02bf4222a39a9e881a692.tar.xz yuzu-ada4242c014d791379c02bf4222a39a9e881a692.tar.zst yuzu-ada4242c014d791379c02bf4222a39a9e881a692.zip |
Diffstat (limited to 'src/core/hle/kernel/hle_ipc.h')
-rw-r--r-- | src/core/hle/kernel/hle_ipc.h | 6 |
1 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 159565203..2aaf93fca 100644 --- a/src/core/hle/kernel/hle_ipc.h +++ b/src/core/hle/kernel/hle_ipc.h @@ -85,8 +85,8 @@ public: */ void ClientDisconnected(KServerSession* session); - std::weak_ptr<ServiceThread> GetServiceThread() const { - return service_thread; + std::shared_ptr<ServiceThread> GetServiceThread() const { + return service_thread.lock(); } protected: @@ -152,7 +152,7 @@ public: session_handler = std::move(handler); } - std::weak_ptr<ServiceThread> GetServiceThread() const { + std::shared_ptr<ServiceThread> GetServiceThread() const { return session_handler->GetServiceThread(); } |