diff options
author | Colin Finck <colin@reactos.org> | 2021-08-09 00:00:20 +0300 |
---|---|---|
committer | Colin Finck <colin@reactos.org> | 2021-08-09 00:00:20 +0300 |
commit | 90b1c3ed57029a9f36c8c6c0c99d4005b709add1 (patch) | |
tree | 461b497d4a4ab926c3e1640bc9346737e163f57f | |
parent | d69510820adb71e02448801d30d3827993f30dcb (diff) |
Fix position calculation in `IndexNodeEntryRanges::next`.
-rw-r--r-- | src/index_entry.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/index_entry.rs b/src/index_entry.rs index 1c84768..1f5660f 100644 --- a/src/index_entry.rs +++ b/src/index_entry.rs @@ -233,7 +233,7 @@ where // Get the current entry. let start = self.range.start; - let position = self.position + self.range.start as u64; + let position = self.position; let entry = NtfsIndexEntry::<'_, E>::new(&self.data[start..], position); let end = start + entry.index_entry_length() as usize; @@ -245,6 +245,7 @@ where // This is not the last entry. // Advance our iterator to the next entry. self.range.start = end; + self.position += entry.index_entry_length() as u64; } Some(IndexEntryRange::new(start..end, position)) |