summaryrefslogtreecommitdiff
path: root/source4/lib/registry/tools/regpatch.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-12-13 00:45:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:21 -0500
commit47fa1d33e4a6b9aeaf06ad2c12d9744bdf967bb9 (patch)
treec49e1c6140d856fdf5c497791a1976def204fd5d /source4/lib/registry/tools/regpatch.c
parentfe01af9fb278a320820b41b7970a1f04b3b696a5 (diff)
downloadsamba-47fa1d33e4a6b9aeaf06ad2c12d9744bdf967bb9.tar.gz
samba-47fa1d33e4a6b9aeaf06ad2c12d9744bdf967bb9.tar.bz2
samba-47fa1d33e4a6b9aeaf06ad2c12d9744bdf967bb9.zip
r4166: More small API fixes, keep registry structs as small as possible.
Implement DelValue in the RPC server (This used to be commit f6b9ec89af934e837069fb26c0e3491fc78ebc12)
Diffstat (limited to 'source4/lib/registry/tools/regpatch.c')
-rw-r--r--source4/lib/registry/tools/regpatch.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source4/lib/registry/tools/regpatch.c b/source4/lib/registry/tools/regpatch.c
index a4a4649c96..18589a9285 100644
--- a/source4/lib/registry/tools/regpatch.c
+++ b/source4/lib/registry/tools/regpatch.c
@@ -701,13 +701,9 @@ static int nt_apply_reg_command_file(struct registry_context *r, const char *cmd
while (cmd->val_count) {
VAL_SPEC_LIST *val = cmd->val_spec_list;
- struct registry_value *reg_val = NULL;
if (val->type == REG_DELETE) {
- error = reg_key_get_value_by_name( mem_ctx, tmp, val->name, &reg_val);
- if(W_ERROR_IS_OK(error)) {
- error = reg_del_value(reg_val);
- }
+ error = reg_del_value(tmp, val->name);
if(!W_ERROR_IS_OK(error)) {
DEBUG(0, ("Error removing value '%s'\n", val->name));
}