summaryrefslogtreecommitdiff
path: root/source/include/nt_status.h
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-01-31 13:47:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:34 -0500
commitc24854433a28cc066072a7107e29aa7fe2bec3c8 (patch)
treebc27f30c6e3697b6c7ef0d4551b7f5992fccc97d /source/include/nt_status.h
parent65f473d22bd8f3b04becfc0be369758898fdadb6 (diff)
downloadsamba-c24854433a28cc066072a7107e29aa7fe2bec3c8.tar.gz
r21084: Make the Samba4 files compile in Samba3, not activated yet.
Volker
Diffstat (limited to 'source/include/nt_status.h')
-rw-r--r--source/include/nt_status.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/include/nt_status.h b/source/include/nt_status.h
index 968657ca44f..471ac47927a 100644
--- a/source/include/nt_status.h
+++ b/source/include/nt_status.h
@@ -66,6 +66,11 @@ typedef uint32 WERROR;
}\
} while (0)
+#define NT_STATUS_NOT_OK_RETURN(x) do { \
+ if (!NT_STATUS_IS_OK(x)) {\
+ return x;\
+ }\
+} 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