diff options
author | Andreas Schneider <asn@samba.org> | 2012-12-10 15:48:28 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2012-12-12 09:42:32 +0100 |
commit | c83f9330a40fc53ec4cbfdfcafa2a95eae4cf7fa (patch) | |
tree | 5ba132f814d9cdf233ad3568f51ebadb624a885c /librpc/idl | |
parent | e4e3293b482d48bc6a503e1280fe2a20556548ef (diff) | |
download | samba-c83f9330a40fc53ec4cbfdfcafa2a95eae4cf7fa.tar.gz samba-c83f9330a40fc53ec4cbfdfcafa2a95eae4cf7fa.tar.bz2 samba-c83f9330a40fc53ec4cbfdfcafa2a95eae4cf7fa.zip |
idl: Fix spoolss check for the size of the struct.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'librpc/idl')
-rw-r--r-- | librpc/idl/spoolss.idl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/librpc/idl/spoolss.idl b/librpc/idl/spoolss.idl index d888a79ecb..1a5f5e9be0 100644 --- a/librpc/idl/spoolss.idl +++ b/librpc/idl/spoolss.idl @@ -3013,11 +3013,11 @@ cpp_quote("#define spoolss_security_descriptor security_descriptor") PROTOCOL_LPR_TYPE = 2 } spoolss_PortProtocol; - typedef [public] struct { + typedef [public,gensize] struct { [charset(UTF16)] uint16 portname[64]; [value(0x00000001)] uint32 version; spoolss_PortProtocol protocol; - [value(sizeof(r))] uint32 size; + [value(ndr_size_spoolss_PortData1(r, ndr->flags))] uint32 size; uint32 reserved; [charset(UTF16)] uint16 hostaddress[49]; [charset(UTF16)] uint16 snmpcommunity[33]; @@ -3031,11 +3031,11 @@ cpp_quote("#define spoolss_security_descriptor security_descriptor") uint32 snmp_dev_index; } spoolss_PortData1; - typedef [public] struct { + typedef [public,gensize] struct { [charset(UTF16)] uint16 portname[64]; [value(0x00000002)] uint32 version; spoolss_PortProtocol protocol; - [value(sizeof(r))] uint32 size; + [value(ndr_size_spoolss_PortData2(r, ndr->flags))] uint32 size; uint32 reserved; [charset(UTF16)] uint16 hostaddress[128]; [charset(UTF16)] uint16 snmpcommunity[33]; |