diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/registry/reg_api.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c index d84acff7c5..3dc3bae6fe 100644 --- a/source3/registry/reg_api.c +++ b/source3/registry/reg_api.c @@ -584,21 +584,7 @@ WERROR reg_deletekey(struct registry_key *parent, const char *path) goto done; } - err = fill_subkey_cache(parent); - W_ERROR_NOT_OK_GOTO_DONE(err); - - err = regsubkey_ctr_delkey(parent->subkeys, name); - W_ERROR_NOT_OK_GOTO_DONE(err); - - if (!store_reg_keys(parent->key, parent->subkeys)) { - TALLOC_FREE(parent->subkeys); - err = WERR_REG_IO_FAILURE; - goto done; - } - - regkey_set_secdesc(key->key, NULL); - - err = WERR_OK; + err = delete_reg_subkey(parent->key, name); done: TALLOC_FREE(mem_ctx); |