diff options
Diffstat (limited to 'source3/registry/reg_init_full.c')
-rw-r--r-- | source3/registry/reg_init_full.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/registry/reg_init_full.c b/source3/registry/reg_init_full.c index f171949e38..e9273a044c 100644 --- a/source3/registry/reg_init_full.c +++ b/source3/registry/reg_init_full.c @@ -65,11 +65,13 @@ REGISTRY_HOOK reg_hooks[] = { bool init_registry( void ) { int i; + WERROR werr; bool ret = false; - if ( !regdb_init() ) { + werr = regdb_init(); + if (!W_ERROR_IS_OK(werr)) { DEBUG(0, ("init_registry: failed to initialize the registry " - "tdb!\n")); + "(%s)\n", dos_errstr(werr))); goto fail; } |