From 3c968f3f1edab2d80b63a3dcb22ae836e9cdde8e Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sun, 16 Aug 2015 16:54:55 -0500 Subject: [PATCH] Whoops - Fix InterlockedPopEntrySList dereferencing a NULL pointer --- src/xenia/kernel/xboxkrnl_threading.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;