diff --git a/ntfsprogs/playlog.c b/ntfsprogs/playlog.c index 07b03c46..14d24564 100644 --- a/ntfsprogs/playlog.c +++ b/ntfsprogs/playlog.c @@ -806,7 +806,9 @@ static int adjust_high_vcn(ntfs_volume *vol, ATTR_RECORD *attr) rl = ntfs_mapping_pairs_decompress(vol, attr, (runlist_element*)NULL); if (rl) { xrl = rl; - while (xrl->length) + if (xrl->length) + xrl++; + while ((xrl->length) && (xrl->lcn != LCN_RL_NOT_MAPPED)) xrl++; high_vcn = xrl->vcn - 1; attr->highest_vcn = cpu_to_sle64(high_vcn);