1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

r24250: Merge W_ERROR_HAVE_NO_MEMORY macro from Samba 4.

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

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