VERY experimental Nintendo Switch 2 emulator
C++
thread: fixed bug where result of __NextThread was not being properly checked when NULL
bunnei6a78be5930fd
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cppindex 294e03ca62..ef705e327d 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);