Author: tpot Date: 2004-09-24 07:55:47 +0000 (Fri, 24 Sep 2004) New Revision: 68
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=lorikeet&path=/trunk/ntacl-lsm&rev=68&nolog=1 Log: Add prototype for ndr_pull_dom_sid() and actually put something in the NDR_CHECK() macro. (-: Modified: trunk/ntacl-lsm/includes.h Changeset: Modified: trunk/ntacl-lsm/includes.h =================================================================== --- trunk/ntacl-lsm/includes.h 2004-09-24 00:32:08 UTC (rev 67) +++ trunk/ntacl-lsm/includes.h 2004-09-24 07:55:47 UTC (rev 68) @@ -143,7 +143,11 @@ offset, not base) */ #define LIBNDR_FLAG_RELATIVE_CURRENT (1<<19) -#define NDR_CHECK(x) (x) +#define NDR_CHECK(call) do { NTSTATUS _status; \ + _status = call; \ + if (_status != 0) \ + return _status; \ + } while (0) typedef NTSTATUS (*ndr_pull_flags_fn_t)(struct ndr_pull *, int ndr_flags, void *); @@ -213,3 +217,5 @@ #include "ndr_misc.h" NTSTATUS ndr_pull_security_descriptor(struct ndr_pull *ndr, int ndr_flags, struct security_descriptor *r); + +NTSTATUS ndr_pull_dom_sid(struct ndr_pull *ndr, int ndr_flags, struct dom_sid *r);