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