소스 검색

Merge pull request #769 from lioncash/cond

thread: Fix a conditional check in Reschedule
bunnei 11 년 전
부모
커밋
9f503387dc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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());
     }