mirror of
https://github.com/samba-team/samba.git
synced 2025-03-03 12:58:35 +03:00
werror: use WERR_NOT_ENOUGH_MEMORY in WERROR macros.
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
217ae44f8a
commit
91046e562d
@ -44,14 +44,14 @@ typedef uint32_t WERROR;
|
||||
|
||||
#define W_ERROR_HAVE_NO_MEMORY(x) do { \
|
||||
if (!(x)) {\
|
||||
return WERR_NOMEM;\
|
||||
return WERR_NOT_ENOUGH_MEMORY;\
|
||||
}\
|
||||
} while (0)
|
||||
|
||||
#define W_ERROR_HAVE_NO_MEMORY_AND_FREE(x, ctx) do { \
|
||||
if (!(x)) {\
|
||||
talloc_free(ctx); \
|
||||
return WERR_NOMEM;\
|
||||
return WERR_NOT_ENOUGH_MEMORY;\
|
||||
}\
|
||||
} while (0)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user