diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-01-07 14:11:29 -0600 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-01-07 08:18:07 -0600 |
commit | 47f6bbf8cf5bdd03c72c59d00e3e1eab8895590e (patch) | |
tree | ffbfa1586fa70dd22422e8e697985af51ec75fd4 /source4/rpc_server | |
parent | 7f8276b06d5000d12c0d64167853a033b924af32 (diff) | |
download | samba-47f6bbf8cf5bdd03c72c59d00e3e1eab8895590e.tar.gz samba-47f6bbf8cf5bdd03c72c59d00e3e1eab8895590e.tar.bz2 samba-47f6bbf8cf5bdd03c72c59d00e3e1eab8895590e.zip |
r26689: registry: Return max_subkeynamelen, max_valnamelen and max_valbufsize in getkeyinfo().
(This used to be commit b06896d2378e536f5044dbe500a5232a89d6d0b5)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/winreg/rpc_winreg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/rpc_server/winreg/rpc_winreg.c b/source4/rpc_server/winreg/rpc_winreg.c index 47c963ad29..681e3b918f 100644 --- a/source4/rpc_server/winreg/rpc_winreg.c +++ b/source4/rpc_server/winreg/rpc_winreg.c @@ -262,7 +262,7 @@ static WERROR dcesrv_winreg_EnumValue(struct dcesrv_call_state *dce_call, r->out.name->name = data_name; r->out.name->length = 2*strlen_m_term(data_name); - r->out.name->size = 2*strlen_m_term(data_name); + r->out.name->size = r->in.name->size; if (r->in.value) { r->out.value = data.data; @@ -379,7 +379,9 @@ static WERROR dcesrv_winreg_QueryInfoKey(struct dcesrv_call_state *dce_call, k = h->data; ret = reg_key_get_info(mem_ctx, k, &classname, r->out.num_subkeys, - r->out.num_values, r->out.last_changed_time); + r->out.num_values, r->out.last_changed_time, + r->out.max_subkeylen, r->out.max_valnamelen, + r->out.max_valbufsize); if (r->out.classname != NULL) r->out.classname->name = classname; |