diff options
author | Günther Deschner <gd@samba.org> | 2007-08-06 10:39:27 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:29:21 -0500 |
commit | b805bcc1b0857959ddf5b4933169bd359db46ba0 (patch) | |
tree | 6d1c5a99eb414837a3fd2d8b5f3fbf95c1939d46 | |
parent | b0ed26faf088d921e876f3a850c3e146514cc7e8 (diff) | |
download | samba-b805bcc1b0857959ddf5b4933169bd359db46ba0.tar.gz samba-b805bcc1b0857959ddf5b4933169bd359db46ba0.tar.bz2 samba-b805bcc1b0857959ddf5b4933169bd359db46ba0.zip |
r24250: Merge W_ERROR_HAVE_NO_MEMORY macro from Samba 4.
Guenther
(This used to be commit 054084a2359b5069b872b2e630377dc369c31018)
-rw-r--r-- | source3/include/nt_status.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/nt_status.h b/source3/include/nt_status.h index 87de48edbe..f2dab1a7f5 100644 --- a/source3/include/nt_status.h +++ b/source3/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;\ |