summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-06-06 09:52:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:42 -0500
commitaa5ff56d89814bc92decc7e9db6e2ed8cf8630b7 (patch)
tree0905652c4641950e0106b606cc06679605491bf2 /source4
parent5b8c972c5b653316eca7d690d64815f52fa0f49a (diff)
downloadsamba-aa5ff56d89814bc92decc7e9db6e2ed8cf8630b7.tar.gz
samba-aa5ff56d89814bc92decc7e9db6e2ed8cf8630b7.tar.bz2
samba-aa5ff56d89814bc92decc7e9db6e2ed8cf8630b7.zip
r7327: pass down the ndr->flags to the subcontexts
metze (This used to be commit c0462d60b58471b0804450d31a11e603519b45e4)
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/ndr/ndr_spoolss_buf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/librpc/ndr/ndr_spoolss_buf.c b/source4/librpc/ndr/ndr_spoolss_buf.c
index 332a563244..26113cca38 100644
--- a/source4/librpc/ndr/ndr_spoolss_buf.c
+++ b/source4/librpc/ndr/ndr_spoolss_buf.c
@@ -46,6 +46,7 @@
DATA_BLOB _data_blob_info;\
_ndr_info = ndr_push_init_ctx(ndr);\
if (!_ndr_info) return NT_STATUS_NO_MEMORY;\
+ _ndr_info->flags= ndr->flags;\
__r.in.level = r->in.level;\
__r.in.count = r->out.count;\
__r.out.info = r->out.info;\
@@ -91,6 +92,7 @@
struct __##fn __r;\
_ndr_info = ndr_pull_init_blob(_r.out.buffer, ndr);\
if (!_ndr_info) return NT_STATUS_NO_MEMORY;\
+ _ndr_info->flags= ndr->flags;\
__r.in.level = r->in.level;\
__r.in.count = r->out.count;\
__r.out.info = NULL;\
@@ -118,11 +120,13 @@
return 0; \
} while (0)
+/* TODO: set _ndr_info->flags correct */
#define NDR_SPOOLSS_SIZE_ENUM(fn) do { \
struct __##fn __r;\
DATA_BLOB _data_blob_info;\
struct ndr_push *_ndr_info = ndr_push_init_ctx(mem_ctx);\
if (!_ndr_info) return 0;\
+ _ndr_info->flags|=0;\
__r.in.level = level;\
__r.in.count = count;\
__r.out.info = info;\