s3:registry: untangle assignment from check and add a debugmessage in reg_setvalue()
authorMichael Adam <obnox@samba.org>
Fri, 20 Apr 2012 13:19:47 +0000 (15:19 +0200)
committerAndreas Schneider <asn@samba.org>
Wed, 25 Apr 2012 12:31:10 +0000 (14:31 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
source3/registry/reg_api.c

index 712cbda78883d60bdd138737aaf28be996572c01..fa00de503da3ed0d0a983d966c6546faeeca949c 100644 (file)
@@ -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;
        }