s3:registry: untangle assignment from check and add a debugmessage in reg_setvalue...
[ddiss/samba.git] / 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;
        }