mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Wrong type used for adding a block when listing the files in a CPM FS
This commit is contained in:
@@ -367,8 +367,8 @@ namespace DiscImageChef.Filesystems.CPM
|
|||||||
// allocate block 0 for a file because that's where the directory resides.
|
// allocate block 0 for a file because that's where the directory resides.
|
||||||
// There is also a field telling how many bytes are used in the last block, but its meaning is
|
// There is also a field telling how many bytes are used in the last block, but its meaning is
|
||||||
// non-standard so we must ignore it.
|
// non-standard so we must ignore it.
|
||||||
foreach(byte blk in entry.allocations
|
foreach(ushort blk in entry.allocations
|
||||||
.Where(blk => !blocks.Contains((ushort)blk) && blk != 0)) blocks.Add((ushort)blk);
|
.Where(blk => !blocks.Contains(blk) && blk != 0)) blocks.Add(blk);
|
||||||
|
|
||||||
// Save the file
|
// Save the file
|
||||||
fInfo.UID = (ulong)user;
|
fInfo.UID = (ulong)user;
|
||||||
|
|||||||
Reference in New Issue
Block a user