From: Thomas Faber Date: Fri, 16 Oct 2015 13:20:00 +0000 (+0000) Subject: [NTOS:CM] X-Git-Tag: ReactOS-0.4.0~503 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=164c7773ba3cf0e3b6dda69ce748bac44252737c [NTOS:CM] - Remove duplicate macro definitions svn path=/trunk/; revision=69552 --- diff --git a/reactos/ntoskrnl/include/internal/cm_x.h b/reactos/ntoskrnl/include/internal/cm_x.h index 13be075fb53..3f6d4ae0018 100644 --- a/reactos/ntoskrnl/include/internal/cm_x.h +++ b/reactos/ntoskrnl/include/internal/cm_x.h @@ -311,25 +311,3 @@ CmpConvertKcbSharedToExclusive(IN PCM_KEY_CONTROL_BLOCK k) (CmpTestHiveFlusherLockShared((PCMHIVE)h) == TRUE) || \ (CmpTestHiveFlusherLockExclusive((PCMHIVE)h) == TRUE) || \ (CmpTestRegistryLockExclusive() == TRUE)); - -// -// Asserts that either the registry or the KCB is locked -// -#define CMP_ASSERT_HASH_ENTRY_LOCK(k) \ -{ \ - ASSERT(((GET_HASH_ENTRY(CmpCacheTable, k).Owner == \ - KeGetCurrentThread())) || \ - (CmpTestRegistryLockExclusive() == TRUE)); \ -} - -// -// Gets the page attached to the KCB -// -#define CmpGetAllocPageFromKcb(k) \ - (PCM_ALLOC_PAGE)(((ULONG_PTR)(k)) & ~(PAGE_SIZE - 1)) - -// -// Gets the page attached to the delayed allocation -// -#define CmpGetAllocPageFromDelayAlloc(a) \ - (PCM_ALLOC_PAGE)(((ULONG_PTR)(a)) & ~(PAGE_SIZE - 1))