summaryrefslogtreecommitdiff
path: root/librpc/ndr
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-03-14 01:39:39 +0100
committerGünther Deschner <gd@samba.org>2009-03-17 11:14:49 +0100
commitb560a99718a4c9d448c4d482486da127362db50a (patch)
tree3fa24df8bfe45e7d59f1697578dcadaf3c687c74 /librpc/ndr
parent2ec1f850e3fc565e7830b94575eeafde18a37d27 (diff)
downloadsamba-b560a99718a4c9d448c4d482486da127362db50a.tar.gz
samba-b560a99718a4c9d448c4d482486da127362db50a.tar.bz2
samba-b560a99718a4c9d448c4d482486da127362db50a.zip
spoolss: fix ndr_push_spoolss_SetPrinterData.
Guenther
Diffstat (limited to 'librpc/ndr')
-rw-r--r--librpc/ndr/ndr_spoolss_buf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/librpc/ndr/ndr_spoolss_buf.c b/librpc/ndr/ndr_spoolss_buf.c
index bba2c72658..8b41a4c133 100644
--- a/librpc/ndr/ndr_spoolss_buf.c
+++ b/librpc/ndr/ndr_spoolss_buf.c
@@ -553,7 +553,7 @@ enum ndr_err_code ndr_push_spoolss_SetPrinterData(struct ndr_push *ndr, int flag
_ndr_data->flags= ndr->flags;
__r.in.type = r->in.type;
- __r.out.data = r->in.data;
+ __r.out.data = discard_const_p(union spoolss_PrinterData, &r->in.data);
NDR_CHECK(ndr_push___spoolss_SetPrinterData(_ndr_data, NDR_OUT, &__r));
_data_blob_data = ndr_push_blob(_ndr_data);