From cdf56dbe79723d43ed14785f2c60569db85290a7 Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Sat, 13 Nov 2004 08:35:46 +0000 Subject: [PATCH] Fix bug in ntfs_rl_get_compressed_size() and optimize it a bit. (Logical change 1.635) --- libntfs/runlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libntfs/runlist.c b/libntfs/runlist.c index 4dc958cb..32ec42a9 100644 --- a/libntfs/runlist.c +++ b/libntfs/runlist.c @@ -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; }