diff options
-rw-r--r-- | source3/include/nt_status.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/nt_status.h b/source3/include/nt_status.h index 87de48edbe..f2dab1a7f5 100644 --- a/source3/include/nt_status.h +++ b/source3/include/nt_status.h @@ -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;\ |