summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-09 07:52:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:27 -0500
commit4141cdf62c2bbd5a081a16c8a9794062b94eed04 (patch)
treeb903fb3019cd5adc9ba5c529ad93128cb0af83ad /source4/torture/rpc
parentff470041c2918e12fd2c5e298fd5ecbfcc74cb5f (diff)
downloadsamba-4141cdf62c2bbd5a081a16c8a9794062b94eed04.tar.gz
samba-4141cdf62c2bbd5a081a16c8a9794062b94eed04.tar.bz2
samba-4141cdf62c2bbd5a081a16c8a9794062b94eed04.zip
r4113: modified EnumValue in winreg to take advantage of the new pidl handling
of arrays. (This used to be commit b47e203a054e26d5d0c133a3c3b8d9502bd6ac69)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/winreg.c27
1 files changed, 9 insertions, 18 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index 592f2ff86a..6f44034273 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -293,12 +293,9 @@ static BOOL test_QueryValue(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct p
{
struct winreg_QueryValue r;
NTSTATUS status;
- struct EnumValueNameOut valname;
uint32 zero = 0;
uint32 offered = 0xfff;
- valname.name = valuename;
-
printf("Testing QueryValue\n");
r.in.handle = handle;
@@ -325,29 +322,23 @@ static BOOL test_EnumValue(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle, int max_valnamelen, int max_valbufsize)
{
struct winreg_EnumValue r;
- struct EnumValueIn buf_name;
- struct EnumValueIn buf_val;
uint32 type;
- uint32 len1 = max_valbufsize, len2 = 0;
+ uint32 size = max_valbufsize, zero = 0;
BOOL ret = True;
+ uint8_t buf8;
+ uint16_t buf16;
printf("testing EnumValue\n");
r.in.handle = handle;
r.in.enum_index = 0;
- r.in.name_in.len = 0;
- r.in.name_in.max_len = max_valnamelen * 2;
- buf_name.max_len = max_valnamelen;
- buf_name.offset = 0;
- buf_name.len = 0;
- r.in.name_in.buffer = &buf_name;
+ r.in.name_in.length = 0;
+ r.in.name_in.size = 0x200;
+ r.in.name_in.name = &buf16;
r.in.type = &type;
- buf_val.max_len = max_valbufsize;
- buf_val.offset = 0;
- buf_val.len = 0;
- r.in.value_in = &buf_val;
- r.in.value_len1 = &len1;
- r.in.value_len2 = &len2;
+ r.in.value = &buf8;
+ r.in.length = &zero;
+ r.in.size = &size;
do {
NTSTATUS status = dcerpc_winreg_EnumValue(p, mem_ctx, &r);