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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 10 May 2012 09:15:16 +0000 (11:15 +0200)
source3/registry/reg_api.c

index c6e6d8e27e644289413be7ba27a0b079f7ff6997..bdf5ae13e096b5efa586f6a248249da700456109 100644 (file)
@@ -711,7 +711,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;
        }