Explorar o código

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

bunnei %!s(int64=12) %!d(string=hai) anos
pai
achega
6a78be5930
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/hle/kernel/thread.cpp

+ 1 - 1
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);