From 97cbf95b0d76c27e714f6e068b25919fbbbb489e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 6 Jul 2014 11:23:22 +0000 Subject: [PATCH] [SACDRV] ASSERT takes a condition, not a string. [NTOS] Use ASSERTMSG instead of a weird ASSERT construction. svn path=/trunk/; revision=63691 --- reactos/drivers/sac/driver/memory.c | 3 ++- reactos/ntoskrnl/po/power.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/drivers/sac/driver/memory.c b/reactos/drivers/sac/driver/memory.c index 86b2efe117f..4def83b812f 100644 --- a/reactos/drivers/sac/driver/memory.c +++ b/reactos/drivers/sac/driver/memory.c @@ -104,7 +104,8 @@ MyAllocatePool(IN SIZE_T PoolSize, PSAC_MEMORY_ENTRY LocalDescriptor, NextDescriptor; ULONG GlobalSize, ActualSize; PVOID Buffer; - ASSERT("Tag != FREE_POOL_TAG"); + + ASSERT(Tag != FREE_POOL_TAG); SAC_DBG(SAC_DBG_MM, "Entering.\n"); /* Acquire the memory allocation lock and align the size request */ diff --git a/reactos/ntoskrnl/po/power.c b/reactos/ntoskrnl/po/power.c index 598b60ad295..771ad0063dc 100644 --- a/reactos/ntoskrnl/po/power.c +++ b/reactos/ntoskrnl/po/power.c @@ -925,7 +925,7 @@ NtSetSystemPowerState(IN POWER_ACTION SystemAction, } /* You should not have made it this far */ - ASSERT(FALSE && "System is still up and running?!"); + ASSERTMSG("System is still up and running?!", FALSE); break; }