diff options
author | Günther Deschner <gd@samba.org> | 2009-12-12 02:51:44 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-12-14 10:38:53 +0100 |
commit | 5ae61cfbc281f346fd3712a975c5796f9cfbc6c2 (patch) | |
tree | 7af677600302f0587266b758c8386333fb02caf2 | |
parent | 801fbd05691819ce9afadf4817bf1bf8ccc28a02 (diff) | |
download | samba-5ae61cfbc281f346fd3712a975c5796f9cfbc6c2.tar.gz samba-5ae61cfbc281f346fd3712a975c5796f9cfbc6c2.tar.bz2 samba-5ae61cfbc281f346fd3712a975c5796f9cfbc6c2.zip |
spoolss: trivial fix for spoolss_FormInfo2 IDL.
Guenther
-rw-r--r-- | librpc/gen_ndr/ndr_spoolss.c | 9 | ||||
-rw-r--r-- | librpc/gen_ndr/spoolss.h | 3 | ||||
-rw-r--r-- | librpc/idl/spoolss.idl | 3 |
3 files changed, 10 insertions, 5 deletions
diff --git a/librpc/gen_ndr/ndr_spoolss.c b/librpc/gen_ndr/ndr_spoolss.c index 79cabd803e..388d707d3b 100644 --- a/librpc/gen_ndr/ndr_spoolss.c +++ b/librpc/gen_ndr/ndr_spoolss.c @@ -15984,7 +15984,8 @@ _PUBLIC_ enum ndr_err_code ndr_push_spoolss_FormInfo2(struct ndr_push *ndr, int NDR_CHECK(ndr_push_relative_ptr1(ndr, r->display_name)); ndr->flags = _flags_save_string; } - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->lang_id)); + NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->lang_id)); + NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->unused)); NDR_CHECK(ndr_push_trailer_align(ndr, 5)); } if (ndr_flags & NDR_BUFFERS) { @@ -16093,7 +16094,8 @@ _PUBLIC_ enum ndr_err_code ndr_pull_spoolss_FormInfo2(struct ndr_pull *ndr, int } ndr->flags = _flags_save_string; } - NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->lang_id)); + NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->lang_id)); + NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->unused)); NDR_CHECK(ndr_pull_trailer_align(ndr, 5)); } if (ndr_flags & NDR_BUFFERS) { @@ -16206,7 +16208,8 @@ _PUBLIC_ void ndr_print_spoolss_FormInfo2(struct ndr_print *ndr, const char *nam ndr_print_string(ndr, "display_name", r->display_name); } ndr->depth--; - ndr_print_uint32(ndr, "lang_id", r->lang_id); + ndr_print_uint16(ndr, "lang_id", r->lang_id); + ndr_print_uint16(ndr, "unused", r->unused); ndr->depth--; } diff --git a/librpc/gen_ndr/spoolss.h b/librpc/gen_ndr/spoolss.h index 77d7c52850..146dde5e2d 100644 --- a/librpc/gen_ndr/spoolss.h +++ b/librpc/gen_ndr/spoolss.h @@ -1620,7 +1620,8 @@ struct spoolss_FormInfo2 { const char * mui_dll;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */ uint32_t ressource_id; const char * display_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */ - uint32_t lang_id; + uint16_t lang_id; + uint16_t unused; }/* [gensize,public] */; union spoolss_FormInfo { diff --git a/librpc/idl/spoolss.idl b/librpc/idl/spoolss.idl index ceff885ac8..14ddba8173 100644 --- a/librpc/idl/spoolss.idl +++ b/librpc/idl/spoolss.idl @@ -1697,7 +1697,8 @@ import "misc.idl", "security.idl", "winreg.idl"; [relative] nstring *mui_dll; uint32 ressource_id; [relative] nstring *display_name; - uint32 lang_id; + uint16 lang_id; + uint16 unused; } spoolss_FormInfo2; typedef [nodiscriminant,relative_base,public,gensize] union { |