]> wimlib.net Git - wimlib/blobdiff - src/ntfs-3g_capture.c
Add new helper function for attaching newly scanned dentry tree
[wimlib] / src / ntfs-3g_capture.c
index de472327cec5df0d0f335a11afd87fea31d12d22..439d17a61aa98c7931b9b59646427f62aa72ac6d 100644 (file)
@@ -607,8 +607,7 @@ filldir(void *_ctx, const ntfschar *name, const int name_nchars,
        ret = ntfs_3g_build_dentry_tree_recursive(&child, mref, ctx->path,
                                                  path_len, name_type,
                                                  ctx->volume, ctx->params);
-       if (child)
-               dentry_add_child(ctx->parent, child);
+       attach_scanned_tree(ctx->parent, child, ctx->params->blob_table);
 out_free_mbs_name:
        FREE(mbs_name);
 out: