X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fdentry.c;h=ff4df8be41dce328d7eac452b049c943feee7979;hb=5aa1f3fd0bfdacf8ae14abf2f6be09f4229dc7b4;hp=d425b2801a29e3c89dbe1322672a7e49a7923322;hpb=4f2e79ad50660aaaf439867a95165ce1426a8a56;p=wimlib diff --git a/src/dentry.c b/src/dentry.c index d425b280..ff4df8be 100644 --- a/src/dentry.c +++ b/src/dentry.c @@ -313,7 +313,7 @@ do_for_dentry_in_tree(struct wim_dentry *dentry, return ret; for_dentry_child(child, dentry) { - ret = for_dentry_in_tree(child, visitor, arg); + ret = do_for_dentry_in_tree(child, visitor, arg); if (unlikely(ret)) return ret; } @@ -329,7 +329,7 @@ do_for_dentry_in_tree_depth(struct wim_dentry *dentry, struct wim_dentry *child; for_dentry_child_postorder(child, dentry) { - ret = for_dentry_in_tree_depth(child, visitor, arg); + ret = do_for_dentry_in_tree_depth(child, visitor, arg); if (unlikely(ret)) return ret; } @@ -1745,7 +1745,7 @@ write_dentry(const struct wim_dentry * restrict dentry, u8 * restrict p) static int write_dir_dentries(struct wim_dentry *dir, void *_pp) { - if (dentry_is_directory(dir)) { + if (dir->subdir_offset != 0) { u8 **pp = _pp; u8 *p = *pp; struct wim_dentry *child;