Fix names in winreg torture tests.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 20 Oct 2008 10:28:13 +0000 (12:28 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 20 Oct 2008 10:28:13 +0000 (12:28 +0200)
source4/torture/ndr/winreg.c
source4/torture/rpc/winreg.c

index 60a3230..de804b7 100644 (file)
@@ -417,7 +417,7 @@ static bool queryinfokey_out_check(struct torture_context *tctx, struct winreg_Q
        torture_assert_str_equal(tctx, r->out.classname->name, "", "class out name");
        torture_assert_int_equal(tctx, *r->out.num_subkeys, 0, "num subkeys");
        torture_assert_int_equal(tctx, *r->out.max_subkeylen, 0, "subkey length");
-       torture_assert_int_equal(tctx, *r->out.max_subkeysize, 140, "subkey size");
+       torture_assert_int_equal(tctx, *r->out.max_classlen, 140, "subkey size");
        torture_assert_werr_ok(tctx, r->out.result, "return code");
        return true;
 }
index bd897f0..08ec8f5 100644 (file)
@@ -1396,7 +1396,7 @@ static bool test_QueryInfoKey(struct dcerpc_pipe *p,
                              struct policy_handle *handle, char *class)
 {
        struct winreg_QueryInfoKey r;
-       uint32_t num_subkeys, max_subkeylen, max_subkeysize,
+       uint32_t num_subkeys, max_subkeylen, max_classlen,
                num_values, max_valnamelen, max_valbufsize,
                secdescsize;
        NTTIME last_changed_time;
@@ -1405,7 +1405,7 @@ static bool test_QueryInfoKey(struct dcerpc_pipe *p,
        r.in.handle = handle;
        r.out.num_subkeys = &num_subkeys;
        r.out.max_subkeylen = &max_subkeylen;
-       r.out.max_subkeysize = &max_subkeysize;
+       r.out.max_classlen = &max_classlen;
        r.out.num_values = &num_values;
        r.out.max_valnamelen = &max_valnamelen;
        r.out.max_valbufsize = &max_valbufsize;