From dea1bad04448436d2fdd0892238d36161fb7ffbc Mon Sep 17 00:00:00 2001 From: Rafal Harabien Date: Thu, 6 Oct 2011 19:39:37 +0000 Subject: [PATCH] [NTOSKRNL] - Save special values in F/Blink when Ex(f)InterlockedRemoveHeadList is called on checked build. Fixes all ntos:ExDoubleList kmtests svn path=/trunk/; revision=54026 --- reactos/ntoskrnl/ex/interlocked.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reactos/ntoskrnl/ex/interlocked.c b/reactos/ntoskrnl/ex/interlocked.c index 65b3872bee2..9d0179c7d0d 100644 --- a/reactos/ntoskrnl/ex/interlocked.c +++ b/reactos/ntoskrnl/ex/interlocked.c @@ -183,6 +183,10 @@ ExInterlockedRemoveHeadList( { /* Remove the first entry from the list head */ ListEntry = RemoveHeadList(ListHead); +#if DBG + ListEntry->Flink = (PLIST_ENTRY)0xBADDD0FF; + ListEntry->Blink = (PLIST_ENTRY)0xBADDD0FF; +#endif } /* Release the spinlock and restore interrupts */ @@ -381,6 +385,10 @@ ExfInterlockedRemoveHeadList( { /* Remove the first entry from the list head */ ListEntry = RemoveHeadList(ListHead); +#if DBG + ListEntry->Flink = (PLIST_ENTRY)0x0BADD0FF; + ListEntry->Blink = (PLIST_ENTRY)0x0BADD0FF; +#endif } /* Release the spinlock and restore interrupts */