]> wimlib.net Git - wimlib/blobdiff - src/mount_image.c
dentry.c: Remove calculate_dentry_tree_full_paths()
[wimlib] / src / mount_image.c
index a7dc82a17effae690f2da278dd51dc71f3d3198d..1fc4e1d618d39aa3064f1e2e3b3a57332263c93e 100644 (file)
@@ -1193,9 +1193,11 @@ release_extra_refcnts(struct wimfs_context *ctx)
        struct wim_lookup_table *lookup_table = ctx->wim->lookup_table;
        struct wim_lookup_table_entry *lte, *tmp;
 
-       list_for_each_entry_safe(lte, tmp, list, orig_stream_list)
-               while (lte->out_refcnt--)
+       list_for_each_entry_safe(lte, tmp, list, orig_stream_list) {
+               u32 n = lte->out_refcnt;
+               while (n--)
                        lte_decrement_refcnt(lte, lookup_table);
+       }
 }
 
 /* Moves the currently selected image, which may have been modified, to a new
@@ -2161,7 +2163,7 @@ static int
 wimfs_rename(const char *from, const char *to)
 {
        return rename_wim_path(wimfs_get_WIMStruct(), from, to,
-                              WIMLIB_CASE_SENSITIVE);
+                              WIMLIB_CASE_SENSITIVE, NULL);
 }
 
 /* Remove a directory */