git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c08366f
)
r24250: Merge W_ERROR_HAVE_NO_MEMORY macro from Samba 4.
author
Günther Deschner
<gd@samba.org>
Mon, 6 Aug 2007 10:39:27 +0000
(10:39 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:29:21 +0000
(12:29 -0500)
Guenther
source/include/nt_status.h
patch
|
blob
|
history
diff --git
a/source/include/nt_status.h
b/source/include/nt_status.h
index 87de48edbe4ccc60dee3ceadef1ec35e4173e13a..f2dab1a7f57f8323cdd9a17eb4d355499550e9a5 100644
(file)
--- a/
source/include/nt_status.h
+++ b/
source/include/nt_status.h
@@
-71,6
+71,12
@@
typedef uint32 WERROR;
}\
} while (0)
+#define W_ERROR_HAVE_NO_MEMORY(x) do { \
+ if (!(x)) {\
+ return WERR_NOMEM;\
+ }\
+} while (0)
+
#define W_ERROR_NOT_OK_RETURN(x) do { \
if (!W_ERROR_IS_OK(x)) {\
return x;\