mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-24 00:40:09 +00:00
Thread: Fix nullptr access in a logging function
This commit is contained in:
parent
32ce2b92c7
commit
08096a5015
@ -382,7 +382,8 @@ void Reschedule() {
|
|||||||
|
|
||||||
for (auto& thread : thread_list) {
|
for (auto& thread : thread_list) {
|
||||||
LOG_TRACE(Kernel, "\thandle=0x%08X prio=0x%02X, status=0x%08X wait_type=0x%08X wait_handle=0x%08X",
|
LOG_TRACE(Kernel, "\thandle=0x%08X prio=0x%02X, status=0x%08X wait_type=0x%08X wait_handle=0x%08X",
|
||||||
thread->GetHandle(), thread->current_priority, thread->status, thread->wait_type, thread->wait_object->GetHandle());
|
thread->GetHandle(), thread->current_priority, thread->status, thread->wait_type,
|
||||||
|
(thread->wait_object ? thread->wait_object->GetHandle() : INVALID_HANDLE));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user