mirror of
https://github.com/reactos/reactos.git
synced 2024-11-05 22:26:39 +00:00
c424146e2c
svn path=/branches/cmake-bringup/; revision=48236
24 lines
993 B
C
24 lines
993 B
C
#ifndef NDEBUG
|
|
#define TEST_STATUS(s) \
|
|
if (! NT_SUCCESS(s)) \
|
|
{ \
|
|
if (s == STATUS_NO_MORE_ENTRIES) \
|
|
DPRINT("NTSTATUS == NO MORE ENTRIES\n"); \
|
|
else if (s == STATUS_BUFFER_OVERFLOW) \
|
|
DPRINT("NTSTATUS == BUFFER OVERFLOW\n"); \
|
|
else if (s == STATUS_BUFFER_TOO_SMALL) \
|
|
DPRINT("NTSTATUS == BUFFER TOO SMALL\n"); \
|
|
else if (s == STATUS_INVALID_PARAMETER) \
|
|
DPRINT("NTSTATUS == INVALID PARAMETER\n"); \
|
|
else if (s == STATUS_OBJECT_NAME_NOT_FOUND) \
|
|
DPRINT("NTSTATUS == OBJECT NAME NOT FOUND\n"); \
|
|
else if (s == STATUS_INVALID_HANDLE) \
|
|
DPRINT("NTATATUS == INVALID_HANDLE\n"); \
|
|
else if (s == STATUS_ACCESS_DENIED) \
|
|
DPRINT("NTSTATUS == ACCESS_DENIED\n"); \
|
|
else \
|
|
DPRINT("NTSTATUS == FAILURE (Unknown)\n"); \
|
|
}
|
|
#else
|
|
#define TEST_STATUS(s)
|
|
#endif
|