From 4b4306eb4a55ae1c705464e3220d963651ce9b91 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 13 Apr 2008 14:18:06 +0200 Subject: registry: change reghook_cache_init() to return WERROR and use it in the callers. Michael (This used to be commit 2f4ca62dce50225d67ba8643afba4199e1845c5f) --- source3/registry/reg_init_full.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source3/registry/reg_init_full.c') diff --git a/source3/registry/reg_init_full.c b/source3/registry/reg_init_full.c index ac3f66f1b26..8c834c4abb5 100644 --- a/source3/registry/reg_init_full.c +++ b/source3/registry/reg_init_full.c @@ -85,7 +85,12 @@ bool init_registry( void ) /* build the cache tree of registry hooks */ - reghook_cache_init(); + werr = reghook_cache_init(); + if (!W_ERROR_IS_OK(werr)) { + DEBUG(0, ("Failed to initialize the reghook cache: %s\n", + dos_errstr(werr))); + goto fail; + } for ( i=0; reg_hooks[i].keyname; i++ ) { if (!reghook_cache_add(reg_hooks[i].keyname, reg_hooks[i].ops)) -- cgit v1.2.1