Explorar el Código

Merge pull request #769 from lioncash/cond

thread: Fix a conditional check in Reschedule
bunnei hace 11 años
padre
commit
9f503387dc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/core/hle/kernel/thread.cpp

+ 1 - 1
src/core/hle/kernel/thread.cpp

@@ -495,7 +495,7 @@ void Reschedule() {
         LOG_TRACE(Kernel, "context switch %u -> %u", cur->GetObjectId(), next->GetObjectId());
     } else if (cur) {
         LOG_TRACE(Kernel, "context switch %u -> idle", cur->GetObjectId());
-    } else {
+    } else if (next) {
         LOG_TRACE(Kernel, "context switch idle -> %u", next->GetObjectId());
     }