summaryrefslogtreecommitdiff
path: root/source3/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
commit113e21f0a57af49d61cfb0dd1afd38b4a8fd5128 (patch)
tree0ed50b9c6a348759586f6ddbb3decc663a531d7d /source3/include/nt_status.h
parentb9af9646807373ba3264a4c44779c0b2eea68723 (diff)
downloadsamba-113e21f0a57af49d61cfb0dd1afd38b4a8fd5128.tar.gz
samba-113e21f0a57af49d61cfb0dd1afd38b4a8fd5128.tar.bz2
samba-113e21f0a57af49d61cfb0dd1afd38b4a8fd5128.zip
r21084: Make the Samba4 files compile in Samba3, not activated yet.
Volker (This used to be commit c24854433a28cc066072a7107e29aa7fe2bec3c8)
Diffstat (limited to 'source3/include/nt_status.h')
-rw-r--r--source3/include/nt_status.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/nt_status.h b/source3/include/nt_status.h
index 968657ca44..471ac47927 100644
--- a/source3/include/nt_status.h
+++ b/source3/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