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:
parent
b0ed26faf0
commit
b805bcc1b0
@ -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;\
|
||||
|
Loading…
Reference in New Issue
Block a user