diff options
| author | 2014-12-29 18:34:01 -0200 | |
|---|---|---|
| committer | 2015-01-09 04:02:28 -0200 | |
| commit | 78ea76e12f22495b3b726a19147b60b2eaf50a9d (patch) | |
| tree | bf2e87982cb365c752ac0c7c4b0b8cc857ff38ad /src/core/hle/kernel/thread.cpp | |
| parent | Thread: Rename thread_queue => thread_list (diff) | |
| download | yuzu-78ea76e12f22495b3b726a19147b60b2eaf50a9d.tar.gz yuzu-78ea76e12f22495b3b726a19147b60b2eaf50a9d.tar.xz yuzu-78ea76e12f22495b3b726a19147b60b2eaf50a9d.zip | |
Thread: Fix nullptr access in a logging function
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 16ceb7ac2..0ae1a21df 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -420,7 +420,8 @@ void Reschedule() { | |||
| 420 | 420 | ||
| 421 | for (Thread* thread : thread_list) { | 421 | for (Thread* thread : thread_list) { |
| 422 | LOG_TRACE(Kernel, "\thandle=0x%08X prio=0x%02X, status=0x%08X wait_type=0x%08X wait_handle=0x%08X", | 422 | LOG_TRACE(Kernel, "\thandle=0x%08X prio=0x%02X, status=0x%08X wait_type=0x%08X wait_handle=0x%08X", |
| 423 | thread->GetHandle(), thread->current_priority, thread->status, thread->wait_type, thread->wait_object->GetHandle()); | 423 | thread->GetHandle(), thread->current_priority, thread->status, thread->wait_type, |
| 424 | (thread->wait_object ? thread->wait_object->GetHandle() : INVALID_HANDLE)); | ||
| 424 | } | 425 | } |
| 425 | } | 426 | } |
| 426 | } | 427 | } |