[SACDRV] Fix CHECK_PARAMETER_WITH_STATUS error handling macro

This commit is contained in:
Timo Kreuzer 2019-01-13 19:23:41 +01:00
parent 05f4951b8c
commit 403fec1b27

View file

@ -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; \
} \