1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

r2953: add NTSTATUS_TALLOC_CHECK(x)

metze
This commit is contained in:
Stefan Metzmacher 2004-10-13 15:04:51 +00:00 committed by Gerald (Jerry) Carter
parent eff51fc623
commit a2cc951720

View File

@ -21,6 +21,10 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#define NTSTATUS_TALLOC_CHECK(x) do {\
if (!(x)) return NT_STATUS_NO_MEMORY;\
} while (0)
#define WERR_TALLOC_CHECK(x) do {\
if (!(x)) return WERR_NOMEM;\
} while (0)