diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-11-02 01:01:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:45:39 -0500 |
commit | e8c23e4e2d9aab7fcf0e7653756c84ef6cf34ed6 (patch) | |
tree | 5a5064b83fd38b3813bacb45b942022492f07125 /source4/librpc/idl | |
parent | 9aa3c44f70e1102be64c503da43718b2c187dde3 (diff) | |
download | samba-e8c23e4e2d9aab7fcf0e7653756c84ef6cf34ed6.tar.gz samba-e8c23e4e2d9aab7fcf0e7653756c84ef6cf34ed6.tar.bz2 samba-e8c23e4e2d9aab7fcf0e7653756c84ef6cf34ed6.zip |
r11457: fixed the winreg IDL and torture code so key and value enumerations
work again. The automatic value() is fine for the length, but cannot
be used for the size as the size is not the number of bytes being
sent, but the number of bytes that the server is allowed to use in the
reply
(This used to be commit 46e91f269c83707863a726e716325eade38e1142)
Diffstat (limited to 'source4/librpc/idl')
-rw-r--r-- | source4/librpc/idl/winreg.idl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/librpc/idl/winreg.idl b/source4/librpc/idl/winreg.idl index 83a95ebac4..d0da5fcc24 100644 --- a/source4/librpc/idl/winreg.idl +++ b/source4/librpc/idl/winreg.idl @@ -131,7 +131,10 @@ typedef struct { [value(strlen_m(name)*2)] uint16 length; - [value(strlen_m(name)*2)] uint16 size; + /* size cannot be auto-set by value() as it is the + amount of space the server is allowed to use for this + string in the reply, not its current size */ + uint16 size; [size_is(size/2),length_is(length/2),charset(UTF16)] uint16 *name; } winreg_StringBuf; |