Author: hbelusca
Date: Sun Jul 6 11:23:22 2014
New Revision: 63691
URL:
http://svn.reactos.org/svn/reactos?rev=63691&view=rev
Log:
[SACDRV]
ASSERT takes a condition, not a string.
[NTOS]
Use ASSERTMSG instead of a weird ASSERT construction.
Modified:
trunk/reactos/drivers/sac/driver/memory.c
trunk/reactos/ntoskrnl/po/power.c
Modified: trunk/reactos/drivers/sac/driver/memory.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/sac/driver/memory.…
==============================================================================
--- trunk/reactos/drivers/sac/driver/memory.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/sac/driver/memory.c [iso-8859-1] Sun Jul 6 11:23:22 2014
@@ -104,7 +104,8 @@
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 */
Modified: trunk/reactos/ntoskrnl/po/power.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/po/power.c?rev=63…
==============================================================================
--- trunk/reactos/ntoskrnl/po/power.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/po/power.c [iso-8859-1] Sun Jul 6 11:23:22 2014
@@ -925,7 +925,7 @@
}
/* 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;
}