r33: Fix torture test after IDL changes.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 5 Apr 2004 09:52:09 +0000 (09:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:50:40 +0000 (12:50 -0500)
(This used to be commit 8b9b992f6026a6b9ace7564d6aaac9060a54af7d)

source4/torture/rpc/winreg.c

index e07429653114bbd791c22574df3c2390c7588f8c..9b90d30d5cfacf5906ff516eb5cd89c421ec560d 100644 (file)
@@ -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;