From 0fc96c416ed96cbe060961ea603f93fd4129b3eb Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 30 Oct 2007 06:24:43 +0100 Subject: r25751: use EJS_CHECK() instead of NDR_CHECK() in ejs code metze (This used to be commit 14ca6a8bf90bc73e1fdb0f510be795e28977601e) --- source4/scripting/ejs/ejsrpc.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/scripting') diff --git a/source4/scripting/ejs/ejsrpc.h b/source4/scripting/ejs/ejsrpc.h index 6723fb4107..cc22a26700 100644 --- a/source4/scripting/ejs/ejsrpc.h +++ b/source4/scripting/ejs/ejsrpc.h @@ -152,6 +152,14 @@ NTSTATUS ejs_push_winreg_String(struct ejs_rpc *ejs, if (!(s)) return ejs_panic(ejs, "out of memory"); \ } while (0) +#define EJS_CHECK(cmd) do { \ + NTSTATUS _status; \ + _status = cmd; \ + if (!NT_STATUS_IS_OK(_status)) { \ + return _status; \ + } \ +} while (0) + /* some types are equivalent for ejs */ #define ejs_pull_dom_sid2 ejs_pull_dom_sid #define ejs_push_dom_sid2 ejs_push_dom_sid -- cgit