git.samba.org
/
tprouty
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix a typo
[tprouty/samba.git]
/
source
/
include
/
nt_status.h
diff --git
a/source/include/nt_status.h
b/source/include/nt_status.h
index 968657ca44f7044e61d2cba3ec473dd4d7b3ef42..471ac47927a7d8f1ed9415763a252ceca35a560e 100644
(file)
--- 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