mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 03:05:50 +00:00
[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:
parent
dea1bad044
commit
59730dc09c
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue