Whoops - Fix InterlockedPopEntrySList dereferencing a NULL pointer

This commit is contained in:
Dr. Chat 2015-08-16 16:54:55 -05:00
parent f9076d08ea
commit 3c968f3f1e
1 changed files with 1 additions and 1 deletions

View File

@ -1323,7 +1323,7 @@ pointer_result_t InterlockedPopEntrySList(pointer_t<X_SLIST_HEADER> plist_ptr) {
old_hdr = *plist_ptr;
auto next = kernel_memory()->TranslateVirtual<X_SINGLE_LIST_ENTRY*>(
old_hdr.next.next);
if (!next) {
if (!old_hdr.next.next) {
return 0;
}
popped = old_hdr.next.next;