summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-06-29 11:40:24 +0200
committerGünther Deschner <gd@samba.org>2010-06-29 11:48:53 +0200
commitbf07bf2857517b0972f47f5e9b46b7bde80c041b (patch)
tree4262cb828f9dfc4366ec0e529114f6f5cc440e98 /source4/torture/rpc
parentee01fe8c5bd450c82db3f7a7e8c783ac32b0812d (diff)
downloadsamba-bf07bf2857517b0972f47f5e9b46b7bde80c041b.tar.gz
samba-bf07bf2857517b0972f47f5e9b46b7bde80c041b.tar.bz2
samba-bf07bf2857517b0972f47f5e9b46b7bde80c041b.zip
winreg: fix winreg_QueryMultipleValues() IDL and torture tests.
Guenther
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/winreg.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index f0510d879a..9deedbf46f 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -1616,13 +1616,13 @@ static bool test_QueryMultipleValues(struct dcerpc_binding_handle *b,
uint32_t bufsize=0;
ZERO_STRUCT(r);
+
r.in.key_handle = handle;
- r.in.values = r.out.values = talloc_array(tctx, struct QueryMultipleValue, 1);
- r.in.values[0].name = talloc(tctx, struct winreg_String);
- r.in.values[0].name->name = valuename;
- r.in.values[0].offset = 0;
- r.in.values[0].length = 0;
- r.in.values[0].type = 0;
+ r.in.values_in = r.out.values_out = talloc_zero_array(tctx, struct QueryMultipleValue, 1);
+ r.in.values_in[0].ve_valuename = talloc(tctx, struct winreg_ValNameBuf);
+ r.in.values_in[0].ve_valuename->name = valuename;
+ /* size needs to be set manually for winreg_ValNameBuf */
+ r.in.values_in[0].ve_valuename->size = strlen_m_term(valuename)*2;
r.in.num_values = 1;
r.in.buffer_size = r.out.buffer_size = talloc(tctx, uint32_t);