diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-12-23 15:52:39 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-02-18 15:47:56 +0100 |
commit | a4c3aeb79306190b09e284a6a28e3b40fbc5823b (patch) | |
tree | 067ff4047f85327a9e491e86ffb4019f086a31ca /librpc | |
parent | 8310f02414efd3b792857ed20c636c4c114e1ba2 (diff) | |
download | samba-a4c3aeb79306190b09e284a6a28e3b40fbc5823b.tar.gz samba-a4c3aeb79306190b09e284a6a28e3b40fbc5823b.tar.bz2 samba-a4c3aeb79306190b09e284a6a28e3b40fbc5823b.zip |
spoolss: use subcontext in NDR_SPOOLSS_PUSH_ENUM_OUT macro.
metze
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/ndr/ndr_spoolss_buf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/librpc/ndr/ndr_spoolss_buf.c b/librpc/ndr/ndr_spoolss_buf.c index 0012ce3e2a..e41f9436b1 100644 --- a/librpc/ndr/ndr_spoolss_buf.c +++ b/librpc/ndr/ndr_spoolss_buf.c @@ -63,11 +63,14 @@ NDR_ERR_HAVE_NO_MEMORY(_ndr_info);\ _ndr_info->flags= ndr->flags;\ if (r->out.info) {\ + struct ndr_push *_subndr_info;\ struct __##fn __r;\ __r.in.level = r->in.level;\ __r.in.count = *r->out.count;\ __r.out.info = *r->out.info;\ - NDR_CHECK(ndr_push___##fn(_ndr_info, flags, &__r)); \ + NDR_CHECK(ndr_push_subcontext_start(_ndr_info, &_subndr_info, 0, r->in.offered));\ + NDR_CHECK(ndr_push___##fn(_subndr_info, flags, &__r)); \ + NDR_CHECK(ndr_push_subcontext_end(_ndr_info, _subndr_info, 0, r->in.offered));\ }\ if (r->in.offered > _ndr_info->offset) {\ uint32_t _padding_len = r->in.offered - _ndr_info->offset;\ |