1*c2c66affSColin Finck #ifndef NDEBUG 2*c2c66affSColin Finck #define TEST_STATUS(s) \ 3*c2c66affSColin Finck if (! NT_SUCCESS(s)) \ 4*c2c66affSColin Finck { \ 5*c2c66affSColin Finck if (s == STATUS_NO_MORE_ENTRIES) \ 6*c2c66affSColin Finck DPRINT("NTSTATUS == NO MORE ENTRIES\n"); \ 7*c2c66affSColin Finck else if (s == STATUS_BUFFER_OVERFLOW) \ 8*c2c66affSColin Finck DPRINT("NTSTATUS == BUFFER OVERFLOW\n"); \ 9*c2c66affSColin Finck else if (s == STATUS_BUFFER_TOO_SMALL) \ 10*c2c66affSColin Finck DPRINT("NTSTATUS == BUFFER TOO SMALL\n"); \ 11*c2c66affSColin Finck else if (s == STATUS_INVALID_PARAMETER) \ 12*c2c66affSColin Finck DPRINT("NTSTATUS == INVALID PARAMETER\n"); \ 13*c2c66affSColin Finck else if (s == STATUS_OBJECT_NAME_NOT_FOUND) \ 14*c2c66affSColin Finck DPRINT("NTSTATUS == OBJECT NAME NOT FOUND\n"); \ 15*c2c66affSColin Finck else if (s == STATUS_INVALID_HANDLE) \ 16*c2c66affSColin Finck DPRINT("NTATATUS == INVALID_HANDLE\n"); \ 17*c2c66affSColin Finck else if (s == STATUS_ACCESS_DENIED) \ 18*c2c66affSColin Finck DPRINT("NTSTATUS == ACCESS_DENIED\n"); \ 19*c2c66affSColin Finck else \ 20*c2c66affSColin Finck DPRINT("NTSTATUS == FAILURE (Unknown)\n"); \ 21*c2c66affSColin Finck } 22*c2c66affSColin Finck #else 23*c2c66affSColin Finck #define TEST_STATUS(s) 24*c2c66affSColin Finck #endif 25