Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/ntfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Finck <colin@reactos.org>2021-04-23 21:57:19 +0300
committerColin Finck <colin@reactos.org>2021-04-23 21:57:19 +0300
commit08f063df590c457860831e10c9106f56e492e3c5 (patch)
treefb808e048faf7b51842b3b2c6c373b44070992a7
parent30f8b3295dad5799e5e4ca191a4045c900b29be0 (diff)
Fix offset/position misnaming in `NtfsAttributes::next`
-rw-r--r--src/attribute.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/attribute.rs b/src/attribute.rs
index ec6a8e4..3af1d01 100644
--- a/src/attribute.rs
+++ b/src/attribute.rs
@@ -339,15 +339,15 @@ where
// This may be an entire attribute or just the 4-byte end marker.
// Check if this marks the end of the attribute list.
- let offset = self.items_range.start;
- iter_try!(self.fs.seek(SeekFrom::Start(offset)));
+ let position = self.items_range.start;
+ iter_try!(self.fs.seek(SeekFrom::Start(position)));
let ty = iter_try!(self.fs.read_le::<u32>());
if ty == NtfsAttributeType::End as u32 {
return None;
}
// It's a real attribute.
- let attribute = iter_try!(NtfsAttribute::new(&mut self.fs, offset));
+ let attribute = iter_try!(NtfsAttribute::new(&mut self.fs, position));
self.items_range.start += attribute.attribute_length() as u64;
Some(Ok(attribute))