diff options
author | Colin Finck <colin@reactos.org> | 2021-04-21 22:15:51 +0300 |
---|---|---|
committer | Colin Finck <colin@reactos.org> | 2021-04-21 22:15:51 +0300 |
commit | 5867e4bb56d605953df1ff2bc0cce9deef497c9a (patch) | |
tree | 8d314f10539312c3624ff897a6bac2857b56821c /src/attribute.rs | |
parent | 20e0600072e8e837d9b478cc77871a43a16a446d (diff) |
Improve interface of `NtfsFile`
Diffstat (limited to 'src/attribute.rs')
-rw-r--r-- | src/attribute.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/attribute.rs b/src/attribute.rs index 254fa58..8f4b969 100644 --- a/src/attribute.rs +++ b/src/attribute.rs @@ -304,8 +304,8 @@ where T: Read + Seek, { pub(crate) fn new(fs: &'a mut T, file: &NtfsFile) -> Self { - let start = file.position + file.header.first_attribute_offset as u64; - let end = file.position + file.header.used_size as u64; + let start = file.position() + file.first_attribute_offset() as u64; + let end = file.position() + file.used_size() as u64; let items_range = start..end; Self { fs, items_range } |