From c83f9330a40fc53ec4cbfdfcafa2a95eae4cf7fa Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 10 Dec 2012 15:48:28 +0100 Subject: idl: Fix spoolss check for the size of the struct. Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- librpc/idl/spoolss.idl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'librpc') 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]; -- cgit