diff options
author | Lioncash <mathew1800@gmail.com> | 2020-07-15 19:13:31 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-07-15 19:28:05 +0200 |
commit | 4ad69ca96e747c2ed23edf7f35c5fedda28b2008 (patch) | |
tree | 113da68e222da4ff4276e8f307e00b57a7eacb99 /src/core/hle/kernel/handle_table.cpp | |
parent | Merge pull request #4342 from lioncash/endian (diff) | |
download | yuzu-4ad69ca96e747c2ed23edf7f35c5fedda28b2008.tar yuzu-4ad69ca96e747c2ed23edf7f35c5fedda28b2008.tar.gz yuzu-4ad69ca96e747c2ed23edf7f35c5fedda28b2008.tar.bz2 yuzu-4ad69ca96e747c2ed23edf7f35c5fedda28b2008.tar.lz yuzu-4ad69ca96e747c2ed23edf7f35c5fedda28b2008.tar.xz yuzu-4ad69ca96e747c2ed23edf7f35c5fedda28b2008.tar.zst yuzu-4ad69ca96e747c2ed23edf7f35c5fedda28b2008.zip |
Diffstat (limited to 'src/core/hle/kernel/handle_table.cpp')
-rw-r--r-- | src/core/hle/kernel/handle_table.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/handle_table.cpp b/src/core/hle/kernel/handle_table.cpp index 35448b576..aaf048243 100644 --- a/src/core/hle/kernel/handle_table.cpp +++ b/src/core/hle/kernel/handle_table.cpp @@ -8,6 +8,7 @@ #include "core/core.h" #include "core/hle/kernel/errors.h" #include "core/hle/kernel/handle_table.h" +#include "core/hle/kernel/scheduler.h" #include "core/hle/kernel/process.h" #include "core/hle/kernel/thread.h" @@ -103,7 +104,7 @@ bool HandleTable::IsValid(Handle handle) const { std::shared_ptr<Object> HandleTable::GetGeneric(Handle handle) const { if (handle == CurrentThread) { - return SharedFrom(GetCurrentThread()); + return SharedFrom(Core::System::GetInstance().CurrentScheduler().GetCurrentThread()); } else if (handle == CurrentProcess) { return SharedFrom(Core::System::GetInstance().CurrentProcess()); } |