diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-10-30 06:24:43 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:43:43 +0100 |
commit | 0fc96c416ed96cbe060961ea603f93fd4129b3eb (patch) | |
tree | 57679f1135ca9b635710c8c4cf0506c44258e272 /source4/scripting/ejs | |
parent | 16d039504763139f1221c3ff4643d1a5cb2bdc87 (diff) | |
download | samba-0fc96c416ed96cbe060961ea603f93fd4129b3eb.tar.gz samba-0fc96c416ed96cbe060961ea603f93fd4129b3eb.tar.bz2 samba-0fc96c416ed96cbe060961ea603f93fd4129b3eb.zip |
r25751: use EJS_CHECK() instead of NDR_CHECK() in ejs code
metze
(This used to be commit 14ca6a8bf90bc73e1fdb0f510be795e28977601e)
Diffstat (limited to 'source4/scripting/ejs')
-rw-r--r-- | source4/scripting/ejs/ejsrpc.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |