diff options
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
| -rw-r--r-- | src/core/hle/kernel/kernel.cpp | 3 |
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 { | |||
| 81 | 81 | ||
| 82 | Object* HandleTable::GetGeneric(Handle handle) const { | 82 | Object* HandleTable::GetGeneric(Handle handle) const { |
| 83 | if (handle == CurrentThread) { | 83 | if (handle == CurrentThread) { |
| 84 | // TODO(yuriks) Directly return the pointer once this is possible. | 84 | return GetCurrentThread(); |
| 85 | handle = GetCurrentThreadHandle(); | ||
| 86 | } else if (handle == CurrentProcess) { | 85 | } else if (handle == CurrentProcess) { |
| 87 | LOG_ERROR(Kernel, "Current process (%08X) pseudo-handle not supported", CurrentProcess); | 86 | LOG_ERROR(Kernel, "Current process (%08X) pseudo-handle not supported", CurrentProcess); |
| 88 | return nullptr; | 87 | return nullptr; |