mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add support for negative sectors to read and write sector calls in images.
This commit is contained in:
@@ -48,6 +48,7 @@ public sealed partial class FAT
|
||||
foreach(uint cluster in rootDirectoryClusters)
|
||||
{
|
||||
ErrorNumber errno = _image.ReadSectors(_firstClusterSector + cluster * _sectorsPerCluster,
|
||||
false,
|
||||
_sectorsPerCluster,
|
||||
out byte[] buffer,
|
||||
out _);
|
||||
@@ -147,6 +148,7 @@ public sealed partial class FAT
|
||||
foreach(uint cluster in GetClusters(_eaDirEntry.start_cluster))
|
||||
{
|
||||
ErrorNumber errno = _image.ReadSectors(_firstClusterSector + cluster * _sectorsPerCluster,
|
||||
false,
|
||||
_sectorsPerCluster,
|
||||
out byte[] buffer,
|
||||
out _);
|
||||
|
||||
Reference in New Issue
Block a user