2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

thread: fixed bug where result of __NextThread was not being properly checked when NULL

This commit is contained in:
bunnei 2014-05-21 21:42:18 -04:00
parent 06e3c3d55a
commit 6a78be5930

View file

@ -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);