diff options
author | Colin Finck <colin@reactos.org> | 2021-04-23 21:57:19 +0300 |
---|---|---|
committer | Colin Finck <colin@reactos.org> | 2021-04-23 21:57:19 +0300 |
commit | 08f063df590c457860831e10c9106f56e492e3c5 (patch) | |
tree | fb808e048faf7b51842b3b2c6c373b44070992a7 | |
parent | 30f8b3295dad5799e5e4ca191a4045c900b29be0 (diff) |
Fix offset/position misnaming in `NtfsAttributes::next`
-rw-r--r-- | src/attribute.rs | 6 |
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)) |