Fixed displaying the correct sector number in error message
When opening a volume, the availability of the last sector is checked, but the error message mentioned a wrong sector.edge.strict_endians
parent
b80d33785a
commit
15f300412a
|
@ -204,7 +204,7 @@ int ntfs_boot_sector_parse(ntfs_volume *vol, const NTFS_BOOT_SECTOR *bs)
|
|||
(sectors - 1) << vol->sector_size_bits,
|
||||
SEEK_SET) == -1) {
|
||||
ntfs_log_perror("Failed to read last sector (%lld)",
|
||||
(long long)sectors);
|
||||
(long long)(sectors - 1));
|
||||
ntfs_log_error("%s", last_sector_error);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue