summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-01-16 00:25:57 +0100
committerGünther Deschner <gd@samba.org>2009-01-16 00:28:46 +0100
commit9361c73c2f4ce9a2f9a7e5515a9272ddd14eb2ed (patch)
treeccc32f145338859800959c85c3a2f73e78557b1b
parentb9d9832cc35c9c221e9cee5d7d46a83bbeea75df (diff)
downloadsamba-9361c73c2f4ce9a2f9a7e5515a9272ddd14eb2ed.tar.gz
samba-9361c73c2f4ce9a2f9a7e5515a9272ddd14eb2ed.tar.bz2
samba-9361c73c2f4ce9a2f9a7e5515a9272ddd14eb2ed.zip
winreg: fix winreg_EnumValue callers.
Guenther
-rw-r--r--source3/utils/net_rpc_registry.c2
-rw-r--r--source4/lib/registry/rpc.c2
-rw-r--r--source4/torture/rpc/winreg.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index 4a39043768..005e3ca556 100644
--- a/source3/utils/net_rpc_registry.c
+++ b/source3/utils/net_rpc_registry.c
@@ -272,7 +272,7 @@ static NTSTATUS registry_enumvalues(TALLOC_CTX *ctx,
uint32 value_length;
char n;
- struct winreg_StringBuf name_buf;
+ struct winreg_ValNameBuf name_buf;
WERROR err;
n = '\0';
diff --git a/source4/lib/registry/rpc.c b/source4/lib/registry/rpc.c
index 8096c8fbfe..0cb6b118a5 100644
--- a/source4/lib/registry/rpc.c
+++ b/source4/lib/registry/rpc.c
@@ -193,7 +193,7 @@ static WERROR rpc_get_value_by_index(TALLOC_CTX *mem_ctx,
{
struct rpc_key *mykeydata = talloc_get_type(parent, struct rpc_key);
struct winreg_EnumValue r;
- struct winreg_StringBuf name;
+ struct winreg_ValNameBuf name;
uint8_t value;
uint32_t val_size = MAX_VALSIZE;
uint32_t zero = 0;
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index 08ec8f5ea1..b544e74181 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -1564,7 +1564,7 @@ static bool test_EnumValue(struct dcerpc_pipe *p, struct torture_context *tctx,
uint32_t size = max_valbufsize, zero = 0;
bool ret = true;
uint8_t buf8;
- struct winreg_StringBuf name;
+ struct winreg_ValNameBuf name;
name.name = "";
name.size = 1024;