[NTOSKRNL] - Set special value in Next ptr when Ex(f)InterlockedPopEntryList is called on checked build. Fixes all ntos:ExSingleList kmtests.

svn path=/trunk/; revision=54027
This commit is contained in:
Rafal Harabien 2011-10-06 19:53:51 +00:00
parent dea1bad044
commit 59730dc09c

View file

@ -210,6 +210,10 @@ ExInterlockedPopEntryList(
/* Pop the first entry from the list */
ListEntry = PopEntryList(ListHead);
#if DBG
if (ListEntry)
ListEntry->Next = (PSINGLE_LIST_ENTRY)0xBADDD0FF;
#endif
/* Release the spinlock and restore interrupts */
_ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
@ -412,6 +416,10 @@ ExfInterlockedPopEntryList(
/* Pop the first entry from the list */
ListEntry = PopEntryList(ListHead);
#if DBG
if (ListEntry)
ListEntry->Next = (PSINGLE_LIST_ENTRY)0xBADDD0FF;
#endif
/* Release the spinlock and restore interrupts */
_ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);