Skip to content

Commit

Permalink
read_from_mappings: bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
maharmstone committed Mar 17, 2023
1 parent 01f5988 commit dc55e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ntfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ static EFI_STATUS read_from_mappings(const volume& vol, const LIST_ENTRY* mappin
while (le != mappings) {
mapping* m = _CR(le, mapping, list_entry);

if (m->vcn < last_vcn && m->vcn + m->length >= vcn) {
if (m->vcn < last_vcn && m->vcn + m->length > vcn) {
uint64_t to_read, mapping_offset;

mapping_offset = offset - (m->vcn * cluster_size);
Expand Down

0 comments on commit dc55e1b

Please sign in to comment.