summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-15 17:34:55 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-15 17:34:55 +0200
commitfed4658c1bb7112b32653cbb4ce1856d6fbc7b34 (patch)
tree5cbe3c1f306f520d187caf7d13709c47f8116885 /source4/torture
parent5437ad822578a9b620f645899c636cde004aa1e8 (diff)
downloadsamba-fed4658c1bb7112b32653cbb4ce1856d6fbc7b34.tar.gz
samba-fed4658c1bb7112b32653cbb4ce1856d6fbc7b34.tar.bz2
samba-fed4658c1bb7112b32653cbb4ce1856d6fbc7b34.zip
winreg.idl: Sync ref change from Samba 3.
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/ndr/winreg.c2
-rw-r--r--source4/torture/rpc/winreg.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/source4/torture/ndr/winreg.c b/source4/torture/ndr/winreg.c
index ab256a7152..1bfe50e740 100644
--- a/source4/torture/ndr/winreg.c
+++ b/source4/torture/ndr/winreg.c
@@ -197,7 +197,7 @@ static const uint8_t queryvalue_in_data[] = {
static bool queryvalue_in_check(struct torture_context *tctx,
struct winreg_QueryValue *r)
{
- torture_assert_str_equal(tctx, r->in.value_name.name, "HOMEPATH", "name");
+ torture_assert_str_equal(tctx, r->in.value_name->name, "HOMEPATH", "name");
torture_assert_int_equal(tctx, *r->in.type, 0, "type");
torture_assert_int_equal(tctx, *r->in.size, 4095, "size");
torture_assert_int_equal(tctx, *r->in.length, 0, "length");
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index aa81aa011b..759e9e6528 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -1539,7 +1539,8 @@ static bool test_QueryValue(struct dcerpc_pipe *p,
ZERO_STRUCT(r);
r.in.handle = handle;
r.in.data = NULL;
- r.in.value_name.name = valuename;
+ r.in.value_name = talloc_zero(tctx, struct winreg_String);
+ r.in.value_name->name = valuename;
r.in.type = &zero_type;
r.in.size = &offered;
r.in.length = &zero;