1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r24250: Merge W_ERROR_HAVE_NO_MEMORY macro from Samba 4.

Guenther
This commit is contained in:
Günther Deschner 2007-08-06 10:39:27 +00:00 committed by Gerald (Jerry) Carter
parent c08366f840
commit 054084a235

View File

@ -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;\