diff options
Diffstat (limited to 'src/structured_values/index_root.rs')
-rw-r--r-- | src/structured_values/index_root.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/structured_values/index_root.rs b/src/structured_values/index_root.rs index 731d0da..098330f 100644 --- a/src/structured_values/index_root.rs +++ b/src/structured_values/index_root.rs @@ -89,7 +89,7 @@ impl<'f> NtfsIndexRoot<'f> { let (entries_range, _position) = self.entries_range_and_position(); if entries_range.start >= self.data.len() { - return Err(NtfsError::InvalidNtfsIndexRootEntriesOffset { + return Err(NtfsError::InvalidIndexRootEntriesOffset { position: self.position, expected: entries_range.start, actual: self.data.len(), @@ -97,7 +97,7 @@ impl<'f> NtfsIndexRoot<'f> { } if entries_range.end > self.data.len() { - return Err(NtfsError::InvalidNtfsIndexRootUsedSize { + return Err(NtfsError::InvalidIndexRootUsedSize { position: self.position, expected: entries_range.end, actual: self.data.len(), |