summaryrefslogtreecommitdiff
path: root/source/include/nt_status.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/include/nt_status.h')
-rw-r--r--source/include/nt_status.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/include/nt_status.h b/source/include/nt_status.h
index 30174e4b51..c96ed3cfd7 100644
--- a/source/include/nt_status.h
+++ b/source/include/nt_status.h
@@ -83,6 +83,18 @@ typedef uint32 WERROR;
}\
} while (0)
+#define W_ERROR_NOT_OK_GOTO_DONE(x) do { \
+ if (!W_ERROR_IS_OK(x)) {\
+ goto done;\
+ }\
+} while (0)
+
+#define W_ERROR_NOT_OK_GOTO(x, y) do {\
+ if (!W_ERROR_IS_OK(x)) {\
+ goto y;\
+ }\
+} while(0)
+
/* The top byte in an NTSTATUS code is used as a type field.
* Windows only uses value 0xC0 as an indicator for an NT error
* and 0x00 for success.