diff options
Diffstat (limited to 'source3/registry/reg_init_basic.c')
-rw-r--r-- | source3/registry/reg_init_basic.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/source3/registry/reg_init_basic.c b/source3/registry/reg_init_basic.c index cdf172c289..c5e2c346b0 100644 --- a/source3/registry/reg_init_basic.c +++ b/source3/registry/reg_init_basic.c @@ -22,26 +22,34 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_REGISTRY -WERROR registry_init_basic(void) +WERROR registry_init_common(void) { WERROR werr; - DEBUG(10, ("registry_init_basic called\n")); - werr = regdb_init(); if (!W_ERROR_IS_OK(werr)) { - DEBUG(1, ("Failed to initialize the registry: %s\n", + DEBUG(0, ("Failed to initialize the registry: %s\n", dos_errstr(werr))); goto done; } werr = reghook_cache_init(); if (!W_ERROR_IS_OK(werr)) { - DEBUG(1, ("Failed to initialize the reghook cache: %s\n", + DEBUG(0, ("Failed to initialize the reghook cache: %s\n", dos_errstr(werr))); } done: + return werr; +} + +WERROR registry_init_basic(void) +{ + WERROR werr; + + DEBUG(10, ("registry_init_basic called\n")); + + werr = registry_init_common(); regdb_close(); return werr; } |