summaryrefslogtreecommitdiffstats
path: root/source/include/nt_status.h
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-02-13 20:55:17 +0000
committerVolker Lendecke <vlendec@samba.org>2007-02-13 20:55:17 +0000
commit61bbf21f075441982f18160da83c6c1c5218b791 (patch)
tree181d16edf98960a557863d4660f28527c7c7622f /source/include/nt_status.h
parent9c362d093e8f7239acbde40f5ab580824bd2bf76 (diff)
downloadsamba-61bbf21f075441982f18160da83c6c1c5218b791.tar.gz
samba-61bbf21f075441982f18160da83c6c1c5218b791.tar.xz
samba-61bbf21f075441982f18160da83c6c1c5218b791.zip
r21322: No feedback means consent :-)
It does not matter if I screw up 3.0.25 or 3.0.26 with this, so do it rather sooner than later. Add the notify support that already exists in 3_0 to 3_0_25. If you want to see this patch dissected into digestable parts, look at 3_0, revisions at about 20800 and following. 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