summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/ndr')
-rw-r--r--source4/librpc/ndr/ndr_spoolss_buf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/librpc/ndr/ndr_spoolss_buf.c b/source4/librpc/ndr/ndr_spoolss_buf.c
index 4da604b187..2bc55db758 100644
--- a/source4/librpc/ndr/ndr_spoolss_buf.c
+++ b/source4/librpc/ndr/ndr_spoolss_buf.c
@@ -114,7 +114,8 @@
char *idx=NULL;\
asprintf(&idx, "[%d]", i);\
if (idx) {\
- ndr_print_##type(ndr, idx, r->in.level, &((*r->out.info)[i]));\
+ ndr_print_set_switch_value(ndr, &((*r->out.info)[i]), r->in.level); \
+ ndr_print_##type(ndr, idx, &((*r->out.info)[i]));\
free(idx);\
}\
}\