diff options
author | bunnei <ericbunnie@gmail.com> | 2014-05-21 21:42:18 -0400 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-05-21 21:42:18 -0400 |
commit | 6a78be5930fd5eabbea740a5cf17efa5a7f1bc98 (patch) | |
tree | e6a5124001e60da3b34f3096d2a6a383c097a0b1 /src/core | |
parent | 06e3c3d55a6e8e58295bd9e7bebecdc777145b20 (diff) |
thread: fixed bug where result of __NextThread was not being properly checked when NULL
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/kernel/thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 294e03ca..ef705e32 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -194,7 +194,7 @@ Thread* __NextThread() { } else { next = g_thread_ready_queue.pop_first(); } - if (next < 0) { + if (next == 0) { return NULL; } return Kernel::g_object_pool.GetFast<Thread>(next); |