Author: fireball Date: Mon Sep 8 07:34:01 2008 New Revision: 36050
URL: http://svn.reactos.org/svn/reactos?rev=36050&view=rev Log: - Comment out the assert which is hit in some cases ("advapi32_winetest.exe registry" being one of them), because there is no locking operation performed in CmpBuildHashStackAndLookupCache yet. - Use a CmpIsKcbLockedExclusive macro in that assert.
Modified: trunk/reactos/ntoskrnl/config/cmalloc.c
Modified: trunk/reactos/ntoskrnl/config/cmalloc.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmalloc.c?r... ============================================================================== --- trunk/reactos/ntoskrnl/config/cmalloc.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/config/cmalloc.c [iso-8859-1] Mon Sep 8 07:34:01 2008 @@ -70,9 +70,8 @@ KeAcquireGuardedMutex(&CmpAllocBucketLock);
/* Sanity check on lock ownership */ - ASSERT((GET_HASH_ENTRY(CmpCacheTable, Kcb->ConvKey).Owner == - KeGetCurrentThread()) || - (CmpTestRegistryLockExclusive() == TRUE)); + //ASSERT((CmpIsKcbLockedExclusive(Kcb) == TRUE) || + // (CmpTestRegistryLockExclusive() == TRUE));
/* Add us to the free list */ InsertTailList(&CmpFreeKCBListHead, &Kcb->FreeListEntry);