summaryrefslogtreecommitdiffstats
path: root/librpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-01-15 23:23:08 +0100
committerGünther Deschner <gd@samba.org>2009-01-16 00:28:46 +0100
commitc3ac9a2977e1e8c3ebbd448582e477f14a1f2ee0 (patch)
tree41135c748c5c002eb78589ab747ecf02f5eb433d /librpc
parent87fec1450f1ae78d9aea58f55bd22dda3d1f362a (diff)
downloadsamba-c3ac9a2977e1e8c3ebbd448582e477f14a1f2ee0.tar.gz
samba-c3ac9a2977e1e8c3ebbd448582e477f14a1f2ee0.tar.xz
samba-c3ac9a2977e1e8c3ebbd448582e477f14a1f2ee0.zip
winreg: fix winreg_EnumValue by re-adding winreg_ValNameBuf from 3.3/3.2.
This fixes viewing samba registry with windows tools like regedit and eventviewer. Michael, Jelmer, please check. Guenther
Diffstat (limited to 'librpc')
-rw-r--r--librpc/idl/winreg.idl13
1 files changed, 11 insertions, 2 deletions
diff --git a/librpc/idl/winreg.idl b/librpc/idl/winreg.idl
index 2f108a090bc..b905bdea7bd 100644
--- a/librpc/idl/winreg.idl
+++ b/librpc/idl/winreg.idl
@@ -139,7 +139,7 @@ import "lsa.idl", "security.idl";
);
typedef struct {
- [value(strlen_m_term(name)*2)] uint16 length;
+ [value(strlen_m_term_null(name)*2)] uint16 length;
/* 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 */
@@ -157,13 +157,22 @@ import "lsa.idl", "security.idl";
[in,out,unique] NTTIME *last_changed_time
);
+ typedef struct {
+ [value(strlen_m_term(name)*2)] uint16 length;
+ /* 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_ValNameBuf;
+
/******************/
/* Function: 0x0a */
[public] WERROR winreg_EnumValue(
[in,ref] policy_handle *handle,
[in] uint32 enum_index,
- [in,out,ref] winreg_StringBuf *name,
+ [in,out,ref] winreg_ValNameBuf *name,
[in,out,unique] winreg_Type *type,
[in,out,unique,size_is(*size),length_is(*length)] uint8 *value,
[in,out,unique] uint32 *size,