summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/librpc/idl/winreg.idl4
-rw-r--r--source4/librpc/idl/winreg.idl6
-rw-r--r--source4/rpc_server/winreg/rpc_winreg.c12
-rw-r--r--source4/torture/ndr/winreg.c8
-rw-r--r--source4/torture/rpc/winreg.c4
5 files changed, 17 insertions, 17 deletions
diff --git a/source3/librpc/idl/winreg.idl b/source3/librpc/idl/winreg.idl
index 028131e8f2..dc4b1bafa8 100644
--- a/source3/librpc/idl/winreg.idl
+++ b/source3/librpc/idl/winreg.idl
@@ -251,9 +251,9 @@ import "lsa.idl", "security.idl";
[in,ref] policy_handle *handle,
[in,ref] winreg_String *value_name,
[in,out,unique] winreg_Type *type,
- [in,out,unique,size_is(*data_size),length_is(*value_length)] uint8 *data,
+ [in,out,unique,size_is(*data_size),length_is(*data_length)] uint8 *data,
[in,out,unique] uint32 *data_size,
- [in,out,unique] uint32 *value_length
+ [in,out,unique] uint32 *data_length
);
/******************/
diff --git a/source4/librpc/idl/winreg.idl b/source4/librpc/idl/winreg.idl
index c4b33a3db6..643dc9e458 100644
--- a/source4/librpc/idl/winreg.idl
+++ b/source4/librpc/idl/winreg.idl
@@ -242,9 +242,9 @@ import "lsa.idl", "security.idl";
[in,ref] policy_handle *handle,
[in,ref] winreg_String *value_name,
[in,out,unique] winreg_Type *type,
- [in,out,unique,size_is(*size),length_is(*length)] uint8 *data,
- [in,out,unique] uint32 *size,
- [in,out,unique] uint32 *length
+ [in,out,unique,size_is(*data_size),length_is(*data_length)] uint8 *data,
+ [in,out,unique] uint32 *data_size,
+ [in,out,unique] uint32 *data_length
);
/******************/
diff --git a/source4/rpc_server/winreg/rpc_winreg.c b/source4/rpc_server/winreg/rpc_winreg.c
index 3b226c8341..e295634c62 100644
--- a/source4/rpc_server/winreg/rpc_winreg.c
+++ b/source4/rpc_server/winreg/rpc_winreg.c
@@ -470,16 +470,16 @@ static WERROR dcesrv_winreg_QueryValue(struct dcesrv_call_state *dce_call,
return WERR_NOMEM;
}
*r->out.type = value_type;
- r->out.length = talloc(mem_ctx, uint32_t);
- if (!r->out.length) {
+ r->out.data_length = talloc(mem_ctx, uint32_t);
+ if (!r->out.data_length) {
return WERR_NOMEM;
}
- *r->out.length = value_data.length;
+ *r->out.data_length = value_data.length;
if (r->in.data == NULL) {
- r->out.size = talloc(mem_ctx, uint32_t);
- *r->out.size = value_data.length;
+ r->out.data_size = talloc(mem_ctx, uint32_t);
+ *r->out.data_size = value_data.length;
} else {
- r->out.size = r->in.size;
+ r->out.data_size = r->in.data_size;
r->out.data = value_data.data;
}
diff --git a/source4/torture/ndr/winreg.c b/source4/torture/ndr/winreg.c
index 1bfe50e740..60a3230d25 100644
--- a/source4/torture/ndr/winreg.c
+++ b/source4/torture/ndr/winreg.c
@@ -199,8 +199,8 @@ static bool queryvalue_in_check(struct torture_context *tctx,
{
torture_assert_str_equal(tctx, r->in.value_name->name, "HOMEPATH", "name");
torture_assert_int_equal(tctx, *r->in.type, 0, "type");
- torture_assert_int_equal(tctx, *r->in.size, 4095, "size");
- torture_assert_int_equal(tctx, *r->in.length, 0, "length");
+ torture_assert_int_equal(tctx, *r->in.data_size, 4095, "size");
+ torture_assert_int_equal(tctx, *r->in.data_length, 0, "length");
torture_assert(tctx, r->in.data == NULL, "data pointer");
return true;
@@ -218,8 +218,8 @@ static bool queryvalue_out_check(struct torture_context *tctx,
torture_assert_werr_ok(tctx, r->out.result, "return code");
torture_assert_int_equal(tctx, *r->out.type, 1, "type");
torture_assert(tctx, r->out.data == NULL, "data pointer");
- torture_assert_int_equal(tctx, *r->out.size, 76, "size");
- torture_assert_int_equal(tctx, *r->out.length, 0, "length");
+ torture_assert_int_equal(tctx, *r->out.data_size, 76, "size");
+ torture_assert_int_equal(tctx, *r->out.data_length, 0, "length");
return true;
}
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index 759e9e6528..bd897f0ada 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -1542,8 +1542,8 @@ static bool test_QueryValue(struct dcerpc_pipe *p,
r.in.value_name = talloc_zero(tctx, struct winreg_String);
r.in.value_name->name = valuename;
r.in.type = &zero_type;
- r.in.size = &offered;
- r.in.length = &zero;
+ r.in.data_size = &offered;
+ r.in.data_length = &zero;
status = dcerpc_winreg_QueryValue(p, tctx, &r);
if (NT_STATUS_IS_ERR(status)) {