summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2014-12-22 07:32:03 +0100
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-01-09 06:51:55 +0100
commitba72208cd4905410eab8b996da0fa05fd05c72ff (patch)
tree3dcaf53894232e83741d3a524c7c53b8da60409c /src/core/hle/kernel/kernel.cpp
parentMove ThreadContext to core/core.h and deal with the fallout (diff)
downloadyuzu-ba72208cd4905410eab8b996da0fa05fd05c72ff.tar
yuzu-ba72208cd4905410eab8b996da0fa05fd05c72ff.tar.gz
yuzu-ba72208cd4905410eab8b996da0fa05fd05c72ff.tar.bz2
yuzu-ba72208cd4905410eab8b996da0fa05fd05c72ff.tar.lz
yuzu-ba72208cd4905410eab8b996da0fa05fd05c72ff.tar.xz
yuzu-ba72208cd4905410eab8b996da0fa05fd05c72ff.tar.zst
yuzu-ba72208cd4905410eab8b996da0fa05fd05c72ff.zip
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 1537702cf..5dfc41bab 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -81,8 +81,7 @@ bool HandleTable::IsValid(Handle handle) const {
Object* HandleTable::GetGeneric(Handle handle) const {
if (handle == CurrentThread) {
- // TODO(yuriks) Directly return the pointer once this is possible.
- handle = GetCurrentThreadHandle();
+ return GetCurrentThread();
} else if (handle == CurrentProcess) {
LOG_ERROR(Kernel, "Current process (%08X) pseudo-handle not supported", CurrentProcess);
return nullptr;