https://git.reactos.org/?p=reactos.git;a=commitdiff;h=403fec1b272587bba4acd…
commit 403fec1b272587bba4acd79fd4d3f591b13b0fc8
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sun Jan 13 19:23:41 2019 +0100
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Mon Mar 4 21:58:42 2019 +0100
[SACDRV] Fix CHECK_PARAMETER_WITH_STATUS error handling macro
---
drivers/sac/driver/sacdrv.h | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/sac/driver/sacdrv.h b/drivers/sac/driver/sacdrv.h
index 602afd05ed..0280b6c9d1 100644
--- a/drivers/sac/driver/sacdrv.h
+++ b/drivers/sac/driver/sacdrv.h
@@ -44,10 +44,9 @@
//
// SAC Parameter Checking Macros
//
-#define CHECK_PARAMETER_WITH_STATUS(Parameter, Status) \
+#define CHECK_PARAMETER_WITH_STATUS(Condition, Status) \
{ \
- ASSERT(((PVOID)(Parameter)) != NULL); \
- if (((PVOID)(Parameter)) == NULL) \
+ if (!NT_VERIFY(Condition)) \
{ \
return Status; \
} \