summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-09 12:50:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:28 -0500
commit3c70b82f42d3b232823fe723858bac5c444fcebd (patch)
tree03cc7ec044dafc5a7efb214c212e52caab160a89
parent2f1193715ff5815498f16cba4391d7ba5f212366 (diff)
downloadsamba-3c70b82f42d3b232823fe723858bac5c444fcebd.tar.gz
samba-3c70b82f42d3b232823fe723858bac5c444fcebd.tar.bz2
samba-3c70b82f42d3b232823fe723858bac5c444fcebd.zip
r4117: fixed EnumValue in winreg server
(This used to be commit f2f21033b65b82251b5ea0b2475ceb1bb3657fb3)
-rw-r--r--source4/rpc_server/winreg/rpc_winreg.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/source4/rpc_server/winreg/rpc_winreg.c b/source4/rpc_server/winreg/rpc_winreg.c
index 50b529e450..e012993bb7 100644
--- a/source4/rpc_server/winreg/rpc_winreg.c
+++ b/source4/rpc_server/winreg/rpc_winreg.c
@@ -198,7 +198,7 @@ static WERROR winreg_EnumKey(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem
winreg_EnumValue
*/
static WERROR winreg_EnumValue(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
- struct winreg_EnumValue *r)
+ struct winreg_EnumValue *r)
{
struct dcesrv_handle *h;
struct registry_key *key;
@@ -217,13 +217,11 @@ static WERROR winreg_EnumValue(struct dcesrv_call_state *dce_call, TALLOC_CTX *m
r->out.type = &value->data_type;
r->out.name_out.name = value->name;
- r->out.value_out = talloc_p(mem_ctx, struct EnumValueOut);
- r->out.value_out->offset = 0;
- r->out.value_out->buffer = data_blob_talloc(mem_ctx, value->data_blk, value->data_len);
- r->out.value_len1 = r->in.value_len1;
- r->out.value_len2 = r->in.value_len2;
+ r->out.value = value->data_blk;
+ r->out.size = talloc_p(mem_ctx, uint32_t);
+ r->out.length = r->out.size;
+ *r->out.size = value->data_len;
-
return WERR_OK;
}