summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-09 12:54:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:28 -0500
commitb71dba6a769770d43cc7430ad8ca7f9fa761f8ef (patch)
tree82579de5b6a077dab554dd99e25890d7a82e3beb /source4
parent3c70b82f42d3b232823fe723858bac5c444fcebd (diff)
downloadsamba-b71dba6a769770d43cc7430ad8ca7f9fa761f8ef.tar.gz
samba-b71dba6a769770d43cc7430ad8ca7f9fa761f8ef.tar.bz2
samba-b71dba6a769770d43cc7430ad8ca7f9fa761f8ef.zip
r4118: don't assume that "unsigned int" is the same type as uint32_t
(This used to be commit 1ddab01d2ac0a51278cbd13d6d9369973c7a5b3a)
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/winreg/rpc_winreg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/rpc_server/winreg/rpc_winreg.c b/source4/rpc_server/winreg/rpc_winreg.c
index e012993bb7..3e9341b122 100644
--- a/source4/rpc_server/winreg/rpc_winreg.c
+++ b/source4/rpc_server/winreg/rpc_winreg.c
@@ -215,7 +215,8 @@ static WERROR winreg_EnumValue(struct dcesrv_call_state *dce_call, TALLOC_CTX *m
return result;
}
- r->out.type = &value->data_type;
+ r->out.type = talloc_p(mem_ctx, uint32_t);
+ *r->out.type = value->data_type;
r->out.name_out.name = value->name;
r->out.value = value->data_blk;
r->out.size = talloc_p(mem_ctx, uint32_t);