From 2db2697aa439efd08fc78dc7e65d0ca8cda605c4 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 5 Apr 2004 09:52:09 +0000 Subject: r33: Fix torture test after IDL changes. (This used to be commit 8b9b992f6026a6b9ace7564d6aaac9060a54af7d) --- source4/torture/rpc/winreg.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c index e074296531..9b90d30d5c 100644 --- a/source4/torture/rpc/winreg.c +++ b/source4/torture/rpc/winreg.c @@ -215,24 +215,15 @@ static BOOL test_EnumValue(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct policy_handle *handle) { struct winreg_EnumValue r; - struct winreg_EnumValueName name; struct winreg_Uint8buf value; - struct winreg_Uint16buf buf; + struct winreg_String name; uint32 type, requested_len, returned_len; NTSTATUS status; r.in.handle = handle; r.in.enum_index = 0; - buf.max_len = 0x7fff; - buf.offset = 0; - buf.len = 0; - buf.buffer = NULL; - - name.len = 0; - name.max_len = buf.max_len * 2; - name.buf = &buf; - + init_winreg_String(&name, NULL); r.in.name = r.out.name = &name; type = 0; -- cgit