summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2014-05-21 21:42:18 -0400
committerGravatar bunnei2014-05-21 21:42:18 -0400
commit6a78be5930fd5eabbea740a5cf17efa5a7f1bc98 (patch)
treee6a5124001e60da3b34f3096d2a6a383c097a0b1 /src/core/hle/kernel/thread.cpp
parentsvc: added Kernel::Reschedule to svc WaitSynchronization1, updated log messag... (diff)
downloadyuzu-6a78be5930fd5eabbea740a5cf17efa5a7f1bc98.tar.gz
yuzu-6a78be5930fd5eabbea740a5cf17efa5a7f1bc98.tar.xz
yuzu-6a78be5930fd5eabbea740a5cf17efa5a7f1bc98.zip
thread: fixed bug where result of __NextThread was not being properly checked when NULL
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 294e03ca6..ef705e327 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -194,7 +194,7 @@ Thread* __NextThread() {
194 } else { 194 } else {
195 next = g_thread_ready_queue.pop_first(); 195 next = g_thread_ready_queue.pop_first();
196 } 196 }
197 if (next < 0) { 197 if (next == 0) {
198 return NULL; 198 return NULL;
199 } 199 }
200 return Kernel::g_object_pool.GetFast<Thread>(next); 200 return Kernel::g_object_pool.GetFast<Thread>(next);