diff options
author | Volker Lendecke <vl@samba.org> | 2013-06-11 19:27:17 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-06-11 10:54:30 -0700 |
commit | 61f59d84ae41fd2101cce91287ec54efd207cf28 (patch) | |
tree | 1cfaf81174bc07ae61cab5801bbea86aa1ee92d2 | |
parent | 9c95110b67ee5f9b40340861b5bb91e770398c3e (diff) | |
download | samba-61f59d84ae41fd2101cce91287ec54efd207cf28.tar.gz samba-61f59d84ae41fd2101cce91287ec54efd207cf28.tar.bz2 samba-61f59d84ae41fd2101cce91287ec54efd207cf28.zip |
winreg3: Fix a const warning
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/rpc_server/winreg/srv_winreg_nt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/winreg/srv_winreg_nt.c b/source3/rpc_server/winreg/srv_winreg_nt.c index 38040d4e51..fc57c22599 100644 --- a/source3/rpc_server/winreg/srv_winreg_nt.c +++ b/source3/rpc_server/winreg/srv_winreg_nt.c @@ -411,6 +411,7 @@ WERROR _winreg_EnumKey(struct pipes_struct *p, { WERROR err = WERR_OK; struct registry_key *key = find_regkey_by_hnd( p, r->in.handle ); + char *name; if ( !key ) return WERR_BADFID; @@ -420,11 +421,12 @@ WERROR _winreg_EnumKey(struct pipes_struct *p, DEBUG(8,("_winreg_EnumKey: enumerating key [%s]\n", key->key->name)); - err = reg_enumkey(p->mem_ctx, key, r->in.enum_index, (char **)&r->out.name->name, + err = reg_enumkey(p->mem_ctx, key, r->in.enum_index, &name, r->out.last_changed_time); if (!W_ERROR_IS_OK(err)) { return err; } + r->out.name->name = name; r->out.keyclass->name = ""; return WERR_OK; } |