r6181: Use ndr_print_set_switch_value() here as well.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 2 Apr 2005 22:46:21 +0000 (22:46 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:11:23 +0000 (13:11 -0500)
(This used to be commit 4da9d1d5c277eb65d0fe5bf5c4690531dcfb85de)

source4/librpc/ndr/ndr_spoolss_buf.c

index 4da604b18758a8ec09c6d03dabe3508ee170947a..2bc55db7588c2e12a21600fbe7cea77dfe6a9230 100644 (file)
                        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);\
                        }\
                }\