summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-24 00:43:11 +0200
committerGitHub <noreply@github.com>2018-10-24 00:43:11 +0200
commite61a62066a1d7668a5e6a792463eccf33baf470e (patch)
tree6e58ea645719d31151168763fb9eb2b4196e7b30 /src/core/hle/kernel/thread.cpp
parentMerge pull request #1552 from FearlessTobi/port-4336 (diff)
parentkernel/process: Make the handle table per-process (diff)
downloadyuzu-e61a62066a1d7668a5e6a792463eccf33baf470e.tar
yuzu-e61a62066a1d7668a5e6a792463eccf33baf470e.tar.gz
yuzu-e61a62066a1d7668a5e6a792463eccf33baf470e.tar.bz2
yuzu-e61a62066a1d7668a5e6a792463eccf33baf470e.tar.lz
yuzu-e61a62066a1d7668a5e6a792463eccf33baf470e.tar.xz
yuzu-e61a62066a1d7668a5e6a792463eccf33baf470e.tar.zst
yuzu-e61a62066a1d7668a5e6a792463eccf33baf470e.zip
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 35ec98c1a..59bc9e0af 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -266,7 +266,7 @@ SharedPtr<Thread> SetupMainThread(KernelCore& kernel, VAddr entry_point, u32 pri
SharedPtr<Thread> thread = std::move(thread_res).Unwrap();
// Register 1 must be a handle to the main thread
- const Handle guest_handle = kernel.HandleTable().Create(thread).Unwrap();
+ const Handle guest_handle = owner_process.GetHandleTable().Create(thread).Unwrap();
thread->SetGuestHandle(guest_handle);
thread->GetContext().cpu_registers[1] = guest_handle;