Author: hbelusca
Date: Mon Jun 19 23:18:42 2017
New Revision: 75146
URL:
http://svn.reactos.org/svn/reactos?rev=75146&view=rev
Log:
[NTOS:CM]: Simplify code by using suitable assertion macro.
Modified:
trunk/reactos/ntoskrnl/config/cmdelay.c
Modified: trunk/reactos/ntoskrnl/config/cmdelay.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmdelay.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cmdelay.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/cmdelay.c [iso-8859-1] Mon Jun 19 23:18:42 2017
@@ -356,8 +356,7 @@
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 @@
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 */