spoolss: make all security descriptors and devicemodes 4 byte aligned and add missing...
authorStefan Metzmacher <metze@samba.org>
Thu, 18 Feb 2010 14:36:08 +0000 (15:36 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 19 Feb 2010 11:30:24 +0000 (12:30 +0100)
Guenther
(cherry picked from commit 8f52957369bf8ce7591d5d9a1436ccb7e384c612)

librpc/idl/spoolss.idl

index d4ca3c69e006cf942965ddd869c98b32e33ed338..6983b3608ae6f93a1fc75acc4282ccc92def5040 100644 (file)
@@ -282,12 +282,12 @@ import "misc.idl", "security.idl", "winreg.idl";
                [relative] nstring *drivername;
                [relative] nstring *comment;
                [relative] nstring *location;
-               [relative,subcontext(0)] spoolss_DeviceMode *devmode;
+               [relative,subcontext(0),flag(NDR_ALIGN4)] spoolss_DeviceMode *devmode;
                [relative] nstring *sepfile;
                [relative] nstring *printprocessor;
                [relative] nstring *datatype;
                [relative] nstring *parameters;
-               [relative,subcontext(0)] security_descriptor *secdesc;
+               [relative,subcontext(0),flag(NDR_ALIGN4)] security_descriptor *secdesc;
                spoolss_PrinterAttributes attributes;
                [range(0,99)] uint32 priority;
                uint32 defaultpriority;
@@ -299,7 +299,7 @@ import "misc.idl", "security.idl", "winreg.idl";
        } spoolss_PrinterInfo2;
 
        typedef [public,gensize] struct {
-               [relative,subcontext(0)] security_descriptor *secdesc;
+               [relative,subcontext(0),flag(NDR_ALIGN4)] security_descriptor *secdesc;
        } spoolss_PrinterInfo3;
 
        typedef [public,gensize] struct {
@@ -334,7 +334,7 @@ import "misc.idl", "security.idl", "winreg.idl";
        } spoolss_PrinterInfo7;
 
        typedef struct {
-               [relative,subcontext(0)] spoolss_DeviceMode *devmode;
+               [relative,subcontext(0),flag(NDR_ALIGN4)] spoolss_DeviceMode *devmode;
        } spoolss_DeviceModeInfo;
 
        typedef [nodiscriminant,relative_base,public,gensize,flag(NDR_RELATIVE_REVERSE)] union {
@@ -428,9 +428,9 @@ import "misc.idl", "security.idl", "winreg.idl";
                [relative] nstring *print_processor;
                [relative] nstring *parameters;
                [relative] nstring *driver_name;
-               [relative] spoolss_DeviceMode *devmode;
+               [relative,subcontext(0),flag(NDR_ALIGN4)] spoolss_DeviceMode *devmode;
                [relative] nstring *text_status;
-               [relative] security_descriptor *secdesc;
+               [relative,subcontext(0),flag(NDR_ALIGN4)] security_descriptor *secdesc;
                spoolss_JobStatus status;
                [range(0,99)] uint32 priority;
                uint32 position;
@@ -460,9 +460,9 @@ import "misc.idl", "security.idl", "winreg.idl";
                [relative] nstring *print_processor;
                [relative] nstring *parameters;
                [relative] nstring *driver_name;
-               [relative] spoolss_DeviceMode *devmode;
+               [relative,subcontext(0),flag(NDR_ALIGN4)] spoolss_DeviceMode *devmode;
                [relative] nstring *text_status;
-               [relative] security_descriptor *secdesc;
+               [relative,subcontext(0),flag(NDR_ALIGN4)] security_descriptor *secdesc;
                spoolss_JobStatus status;
                [range(0,99)] uint32 priority;
                uint32 position;