]> wimlib.net Git - wimlib/blobdiff - src/metadata_resource.c
Add ADS entry workaround
[wimlib] / src / metadata_resource.c
index e632198940f332928b2e543b78e55e7fd8aa6d77..255903699bc0f1cc7f8d9e7abe42c9196ac3ee96 100644 (file)
@@ -246,7 +246,7 @@ prepare_metadata_resource(WIMStruct *wim, int image,
         */
        recalculate_security_data_length(sd);
        subdir_offset = (((u64)sd->total_length + 7) & ~7) +
-                       dentry_correct_total_length(root) + 8;
+                       dentry_out_total_length(root) + 8;
 
        /* Calculate the subdirectory offsets for the entire dentry tree.  */
        calculate_subdir_offsets(root, &subdir_offset);