From d3178859aa59242d191c5faa8a7ecfd55a16573a Mon Sep 17 00:00:00 2001 From: "(none)!yura" <(none)!yura> Date: Thu, 5 Aug 2004 19:35:51 +0000 Subject: [PATCH] bugfix for ntfs_mapping_pairs_decompress for highest_vcn == 0 (Logical change 1.478) --- libntfs/runlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libntfs/runlist.c b/libntfs/runlist.c index 7b8968fe..a667882f 100644 --- a/libntfs/runlist.c +++ b/libntfs/runlist.c @@ -896,7 +896,7 @@ mpa_err: * highest cluster, the runlist is either corrupt or, more * likely, there are more extents following this one. */ - if (deltaxcn < --max_cluster) { + if (deltaxcn && deltaxcn < --max_cluster) { Dprintf("More extents to follow; deltaxcn = 0x%llx, " "max_cluster = 0x%llx\n", (long long)deltaxcn,