mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[NTOS:CM]: Simplify code by using suitable assertion macro.
svn path=/trunk/; revision=75146
This commit is contained in:
@@ -356,8 +356,7 @@ CmpAddToDelayedClose(IN PCM_KEY_CONTROL_BLOCK Kcb,
|
||||
PAGED_CODE();
|
||||
|
||||
/* Sanity check */
|
||||
ASSERT((CmpIsKcbLockedExclusive(Kcb) == TRUE) ||
|
||||
(CmpTestRegistryLockExclusive() == TRUE));
|
||||
CMP_ASSERT_KCB_LOCK(Kcb);
|
||||
|
||||
/* Make sure it's valid */
|
||||
if (Kcb->DelayedCloseIndex != CmpDelayedCloseSize) ASSERT(FALSE);
|
||||
@@ -430,8 +429,7 @@ CmpRemoveFromDelayedClose(IN PCM_KEY_CONTROL_BLOCK Kcb)
|
||||
PAGED_CODE();
|
||||
|
||||
/* Sanity checks */
|
||||
ASSERT((CmpIsKcbLockedExclusive(Kcb) == TRUE) ||
|
||||
(CmpTestRegistryLockExclusive() == TRUE));
|
||||
CMP_ASSERT_KCB_LOCK(Kcb);
|
||||
if (Kcb->DelayedCloseIndex == CmpDelayedCloseSize) ASSERT(FALSE);
|
||||
|
||||
/* Get the entry and lock the table */
|
||||
|
||||
Reference in New Issue
Block a user