From 4232f12d4e989eb64e59ecb430e4119c3034da17 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 23 Dec 2009 15:52:39 +0100 Subject: [PATCH] spoolss: use subcontext in NDR_SPOOLSS_PUSH_ENUM_OUT macro. metze (cherry picked from commit a4c3aeb79306190b09e284a6a28e3b40fbc5823b) (cherry picked from commit db00f017f2ab67931bf04d53df592658fde69419) --- librpc/ndr/ndr_spoolss_buf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/librpc/ndr/ndr_spoolss_buf.c b/librpc/ndr/ndr_spoolss_buf.c index 7d9c2119c0c..783f20b50f1 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;\ -- 2.11.4.GIT