From: Michael Adam Date: Fri, 20 Apr 2012 13:19:47 +0000 (+0200) Subject: s3:registry: untangle assignment from check and add a debugmessage in reg_setvalue() X-Git-Tag: samba-4.0.0alpha20~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=705ea5b8c29a7ea9d1e2865abeec3d31d4c18d93;p=thirdparty%2Fsamba.git s3:registry: untangle assignment from check and add a debugmessage in reg_setvalue() Signed-off-by: Andreas Schneider --- diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c index 712cbda7888..fa00de503da 100644 --- a/source3/registry/reg_api.c +++ b/source3/registry/reg_api.c @@ -723,7 +723,9 @@ WERROR reg_setvalue(struct registry_key *key, const char *name, return WERR_ACCESS_DENIED; } - if (!W_ERROR_IS_OK(err = fill_value_cache(key))) { + err = fill_value_cache(key); + if (!W_ERROR_IS_OK(err)) { + DEBUG(0, ("reg_setvalue: Error filling value cache: %s\n", win_errstr(err))); return err; }