From 3f01e05a77eec61f367e5cce7908bdcf02d1749a Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 13 Apr 2008 15:12:04 +0200 Subject: registry: change registry_init_basic() to return WERROR instead of bool Michael (This used to be commit 6a31e659cb371395dff0906786f3c6ef0cc2b3de) --- source3/libgpo/gpo_reg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/libgpo') diff --git a/source3/libgpo/gpo_reg.c b/source3/libgpo/gpo_reg.c index 80639b86c5..de4a7937ec 100644 --- a/source3/libgpo/gpo_reg.c +++ b/source3/libgpo/gpo_reg.c @@ -60,8 +60,9 @@ WERROR gp_init_reg_ctx(TALLOC_CTX *mem_ctx, return WERR_INVALID_PARAM; } - if (!registry_init_basic()) { - return WERR_CAN_NOT_COMPLETE; + werr = registry_init_basic(); + if (!W_ERROR_IS_OK(werr)) { + return werr; } tmp_ctx = TALLOC_ZERO_P(mem_ctx, struct gp_registry_context); -- cgit