From f8f3b78fce3df6963e635890b5f2880d36eb3b2e Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Tue, 15 Jul 2008 13:20:38 +0000 Subject: [PATCH] Stefan Ginsberg - Remove a hack in the executive handle implementation, which worked around a memory corruption bug. Revision 32770 should have fixed the bug hidden by this hack. See issue #3512 for more details. svn path=/trunk/; revision=34520 --- reactos/ntoskrnl/ex/handle.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ex/handle.c b/reactos/ntoskrnl/ex/handle.c index de0bd74d34d..70d181edd42 100644 --- a/reactos/ntoskrnl/ex/handle.c +++ b/reactos/ntoskrnl/ex/handle.c @@ -1274,8 +1274,7 @@ ExEnumHandleTable(IN PHANDLE_TABLE HandleTable, /* Validate the entry */ if ((HandleTableEntry) && (HandleTableEntry->Object) && - (HandleTableEntry->NextFreeTableEntry != -2) && - (HandleTableEntry->Object != (PVOID)0xCDCDCDCD)) // HACK OF ETERNAL LAPDANCE + (HandleTableEntry->NextFreeTableEntry != -2)) { /* Lock the entry */ if (ExpLockHandleTableEntry(HandleTable, HandleTableEntry))