summaryrefslogtreecommitdiff
path: root/source3/registry/reg_init_full.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-13 14:55:49 +0200
committerMichael Adam <obnox@samba.org>2008-04-13 15:33:48 +0200
commit80b6d7b1d66509162da04e143d42fdd35a4c61e5 (patch)
tree90aba878ac32faaf482b98802dac1a0b89393b03 /source3/registry/reg_init_full.c
parent5166d562eaf8896493f161c43408fd54a88f7c61 (diff)
downloadsamba-80b6d7b1d66509162da04e143d42fdd35a4c61e5.tar.gz
samba-80b6d7b1d66509162da04e143d42fdd35a4c61e5.tar.bz2
samba-80b6d7b1d66509162da04e143d42fdd35a4c61e5.zip
registry: change reghook_cache_add() to return WERROR instead of bool
Michael (This used to be commit e65a999989c97c4c7b0af5093e0e89583691e9a8)
Diffstat (limited to 'source3/registry/reg_init_full.c')
-rw-r--r--source3/registry/reg_init_full.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/registry/reg_init_full.c b/source3/registry/reg_init_full.c
index 8c834c4abb..e24cb61481 100644
--- a/source3/registry/reg_init_full.c
+++ b/source3/registry/reg_init_full.c
@@ -93,8 +93,10 @@ bool init_registry( void )
}
for ( i=0; reg_hooks[i].keyname; i++ ) {
- if (!reghook_cache_add(reg_hooks[i].keyname, reg_hooks[i].ops))
+ werr = reghook_cache_add(reg_hooks[i].keyname, reg_hooks[i].ops);
+ if (!W_ERROR_IS_OK(werr)) {
goto fail;
+ }
}
if ( DEBUGLEVEL >= 20 )