diff --git a/src/xenia/kernel/xboxkrnl_threading.cc b/src/xenia/kernel/xboxkrnl_threading.cc index 5ec67c632..9d91bb25c 100644 --- a/src/xenia/kernel/xboxkrnl_threading.cc +++ b/src/xenia/kernel/xboxkrnl_threading.cc @@ -1323,7 +1323,7 @@ pointer_result_t InterlockedPopEntrySList(pointer_t plist_ptr) { old_hdr = *plist_ptr; auto next = kernel_memory()->TranslateVirtual( old_hdr.next.next); - if (!next) { + if (!old_hdr.next.next) { return 0; } popped = old_hdr.next.next;