Fix bug in ntfs_rl_get_compressed_size() and optimize it a bit.

(Logical change 1.635)
edge.strict_endians
cantab.net!aia21 2004-11-13 08:35:46 +00:00
parent 44287b3105
commit cdf56dbe79
1 changed files with 2 additions and 2 deletions

View File

@ -1680,7 +1680,7 @@ s64 ntfs_rl_get_compressed_size(ntfs_volume *vol, runlist *rl)
return -1;
}
} else
ret = rlc->length << vol->cluster_size_bits;
ret += rlc->length;
}
return ret;
return ret << vol->cluster_size_bits;
}