From b0e6ce645a433c8972eb131cbc4cf0aed3ce1055 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 26 Dec 2004 22:41:38 +0000 Subject: r4371: Add "Create Key", "Delete Key" and "Delete Value" buttons. gregedit now can do the same things as regedt32 except for finding data and setting values. (and a few segfaults...) (This used to be commit ada16f31e4da919731767ce31000aa270f22ffd5) --- source4/lib/registry/reg_backend_ldb.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source4/lib/registry') diff --git a/source4/lib/registry/reg_backend_ldb.c b/source4/lib/registry/reg_backend_ldb.c index f7b743fd72..ffb9215cf0 100644 --- a/source4/lib/registry/reg_backend_ldb.c +++ b/source4/lib/registry/reg_backend_ldb.c @@ -237,12 +237,13 @@ static WERROR ldb_open_hive(struct registry_hive *hive, struct registry_key **k) if (!hive->location) return WERR_INVALID_PARAM; wrap = ldb_wrap_connect(hive, hive->location, 0, NULL); - c = wrap->ldb; - - if(!c) { - DEBUG(1, ("ldb_open_hive: %s\n", ldb_errstring(hive->backend_data))); + if(!wrap) { + DEBUG(1, ("ldb_open_hive: unable to connect\n")); return WERR_FOOBAR; } + + c = wrap->ldb; + ldb_set_debug_stderr(c); hive->backend_data = c; -- cgit