summaryrefslogtreecommitdiff
path: root/source4/rpc_server/winreg
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-12-14 20:49:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:26 -0500
commit1a340869c43f9ce741e8a4bd28ea01ec63301df5 (patch)
treecd005ea4f160b42c8c38b7a9112b87c93ee0ced3 /source4/rpc_server/winreg
parent75f02f9d4daf4a16b408ce145f841f11d4b0ca67 (diff)
downloadsamba-1a340869c43f9ce741e8a4bd28ea01ec63301df5.tar.gz
samba-1a340869c43f9ce741e8a4bd28ea01ec63301df5.tar.bz2
samba-1a340869c43f9ce741e8a4bd28ea01ec63301df5.zip
r4204: Arguments to reg_del_key more like the RPC for more efficient usage
Fix small bug in regpatch Fix segfault in regshell cmdline completion Implement set_value and del_value in ldb backend (This used to be commit 8e2aa58abeafa78afe7dafb9723f5f365e756527)
Diffstat (limited to 'source4/rpc_server/winreg')
-rw-r--r--source4/rpc_server/winreg/rpc_winreg.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/rpc_server/winreg/rpc_winreg.c b/source4/rpc_server/winreg/rpc_winreg.c
index e8d4056b2a..b34ccfa4b9 100644
--- a/source4/rpc_server/winreg/rpc_winreg.c
+++ b/source4/rpc_server/winreg/rpc_winreg.c
@@ -126,16 +126,13 @@ static WERROR winreg_DeleteKey(struct dcesrv_call_state *dce_call, TALLOC_CTX *m
struct winreg_DeleteKey *r)
{
struct dcesrv_handle *h;
- struct registry_key *key;
WERROR result;
h = dcesrv_handle_fetch(dce_call->conn, r->in.handle, HTYPE_REGKEY);
DCESRV_CHECK_HANDLE(h);
- result = reg_open_key(mem_ctx, (struct registry_key *)h->data, r->in.key.name, &key);
-
if (W_ERROR_IS_OK(result)) {
- return reg_key_del(key);
+ return reg_key_del((struct registry_key *)h->data, r->in.key.name);
}
return result;