Author: gd
Date: 2007-08-06 10:39:27 +0000 (Mon, 06 Aug 2007)
New Revision: 24250

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24250

Log:
Merge W_ERROR_HAVE_NO_MEMORY macro from Samba 4.

Guenther

Modified:
   branches/SAMBA_3_2/source/include/nt_status.h
   branches/SAMBA_3_2_0/source/include/nt_status.h


Changeset:
Modified: branches/SAMBA_3_2/source/include/nt_status.h
===================================================================
--- branches/SAMBA_3_2/source/include/nt_status.h       2007-08-06 05:43:54 UTC 
(rev 24249)
+++ branches/SAMBA_3_2/source/include/nt_status.h       2007-08-06 10:39:27 UTC 
(rev 24250)
@@ -71,6 +71,12 @@
        }\
 } 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;\

Modified: branches/SAMBA_3_2_0/source/include/nt_status.h
===================================================================
--- branches/SAMBA_3_2_0/source/include/nt_status.h     2007-08-06 05:43:54 UTC 
(rev 24249)
+++ branches/SAMBA_3_2_0/source/include/nt_status.h     2007-08-06 10:39:27 UTC 
(rev 24250)
@@ -71,6 +71,12 @@
        }\
 } 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;\

Reply via email to