spoolss: the flags in spoolss_SetPrinterInfo1 are in fact spoolss_PrinterAttributes.
authorGünther Deschner <gd@samba.org>
Fri, 3 Jul 2009 12:08:05 +0000 (14:08 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 3 Jul 2009 20:05:29 +0000 (22:05 +0200)
Guenther

librpc/gen_ndr/ndr_spoolss.c
librpc/idl/spoolss.idl

index d7d5e354a26286f36a46fb7007350b09dc0099e8..b5df8d33aff0443f38b4430fd905b4e9da23407d 100644 (file)
@@ -5959,7 +5959,7 @@ static enum ndr_err_code ndr_push_spoolss_SetPrinterInfo1(struct ndr_push *ndr,
 {
        if (ndr_flags & NDR_SCALARS) {
                NDR_CHECK(ndr_push_align(ndr, 4));
-               NDR_CHECK(ndr_push_spoolss_EnumPrinterFlags(ndr, NDR_SCALARS, r->flags));
+               NDR_CHECK(ndr_push_spoolss_PrinterAttributes(ndr, NDR_SCALARS, r->flags));
                NDR_CHECK(ndr_push_unique_ptr(ndr, r->description));
                NDR_CHECK(ndr_push_unique_ptr(ndr, r->name));
                NDR_CHECK(ndr_push_unique_ptr(ndr, r->comment));
@@ -5997,7 +5997,7 @@ static enum ndr_err_code ndr_pull_spoolss_SetPrinterInfo1(struct ndr_pull *ndr,
        TALLOC_CTX *_mem_save_comment_0;
        if (ndr_flags & NDR_SCALARS) {
                NDR_CHECK(ndr_pull_align(ndr, 4));
-               NDR_CHECK(ndr_pull_spoolss_EnumPrinterFlags(ndr, NDR_SCALARS, &r->flags));
+               NDR_CHECK(ndr_pull_spoolss_PrinterAttributes(ndr, NDR_SCALARS, &r->flags));
                NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_description));
                if (_ptr_description) {
                        NDR_PULL_ALLOC(ndr, r->description);
@@ -6062,7 +6062,7 @@ _PUBLIC_ void ndr_print_spoolss_SetPrinterInfo1(struct ndr_print *ndr, const cha
 {
        ndr_print_struct(ndr, name, "spoolss_SetPrinterInfo1");
        ndr->depth++;
-       ndr_print_spoolss_EnumPrinterFlags(ndr, "flags", r->flags);
+       ndr_print_spoolss_PrinterAttributes(ndr, "flags", r->flags);
        ndr_print_ptr(ndr, "description", r->description);
        ndr->depth++;
        if (r->description) {
index 91a7cf0d048cb0a9c2573aa8b69ff776c4c9961d..d4c6e198b8c909691e1790c033ec5f217790c0c4 100644 (file)
@@ -686,7 +686,7 @@ import "misc.idl", "security.idl", "winreg.idl";
        } spoolss_SetPrinterInfo0;
 
        typedef struct {
-               spoolss_EnumPrinterFlags flags;
+               spoolss_PrinterAttributes flags;
                [string,charset(UTF16)] uint16 *description;
                [string,charset(UTF16)] uint16 *name;
                [string,charset(UTF16)] uint16 *comment;