From bf07bf2857517b0972f47f5e9b46b7bde80c041b Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 29 Jun 2010 11:40:24 +0200 Subject: winreg: fix winreg_QueryMultipleValues() IDL and torture tests. Guenther --- source4/torture/rpc/winreg.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/torture/rpc') 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); -- cgit