Corrected API miscalling.

This commit is contained in:
2017-08-09 04:46:14 +01:00
parent 620d5a95b7
commit 1638792085
3 changed files with 6 additions and 6 deletions

View File

@@ -125,7 +125,7 @@ namespace DiscImageChef.Filesystems
if((Marshal.SizeOf(efs_sb) + 0x200) % imagePlugin.GetSectorSize() != 0) if((Marshal.SizeOf(efs_sb) + 0x200) % imagePlugin.GetSectorSize() != 0)
sbSize++; sbSize++;
byte[] sector = imagePlugin.ReadSector(partition.Start, sbSize); byte[] sector = imagePlugin.ReadSectors(partition.Start, sbSize);
if(sector.Length < Marshal.SizeOf(efs_sb)) if(sector.Length < Marshal.SizeOf(efs_sb))
return false; return false;
@@ -178,7 +178,7 @@ namespace DiscImageChef.Filesystems
if((Marshal.SizeOf(efsSb) + 0x400) % imagePlugin.GetSectorSize() != 0) if((Marshal.SizeOf(efsSb) + 0x400) % imagePlugin.GetSectorSize() != 0)
sbSize++; sbSize++;
byte[] sector = imagePlugin.ReadSector(partition.Start, sbSize); byte[] sector = imagePlugin.ReadSectors(partition.Start, sbSize);
if(sector.Length < Marshal.SizeOf(efsSb)) if(sector.Length < Marshal.SizeOf(efsSb))
return; return;

View File

@@ -163,7 +163,7 @@ namespace DiscImageChef.Filesystems
if((Marshal.SizeOf(unicosSb)) % imagePlugin.GetSectorSize() != 0) if((Marshal.SizeOf(unicosSb)) % imagePlugin.GetSectorSize() != 0)
sbSize++; sbSize++;
byte[] sector = imagePlugin.ReadSector(partition.Start, sbSize); byte[] sector = imagePlugin.ReadSectors(partition.Start, sbSize);
if(sector.Length < Marshal.SizeOf(unicosSb)) if(sector.Length < Marshal.SizeOf(unicosSb))
return false; return false;
@@ -186,7 +186,7 @@ namespace DiscImageChef.Filesystems
if((Marshal.SizeOf(unicosSb)) % imagePlugin.GetSectorSize() != 0) if((Marshal.SizeOf(unicosSb)) % imagePlugin.GetSectorSize() != 0)
sbSize++; sbSize++;
byte[] sector = imagePlugin.ReadSector(partition.Start, sbSize); byte[] sector = imagePlugin.ReadSectors(partition.Start, sbSize);
if(sector.Length < Marshal.SizeOf(unicosSb)) if(sector.Length < Marshal.SizeOf(unicosSb))
return; return;

View File

@@ -136,7 +136,7 @@ namespace DiscImageChef.Filesystems
if((Marshal.SizeOf(xfsSb) + 0x400) % imagePlugin.GetSectorSize() != 0) if((Marshal.SizeOf(xfsSb) + 0x400) % imagePlugin.GetSectorSize() != 0)
sbSize++; sbSize++;
byte[] sector = imagePlugin.ReadSector(partition.Start, sbSize); byte[] sector = imagePlugin.ReadSectors(partition.Start, sbSize);
if(sector.Length < Marshal.SizeOf(xfsSb)) if(sector.Length < Marshal.SizeOf(xfsSb))
return false; return false;
@@ -195,7 +195,7 @@ namespace DiscImageChef.Filesystems
if((Marshal.SizeOf(xfsSb) + 0x400) % imagePlugin.GetSectorSize() != 0) if((Marshal.SizeOf(xfsSb) + 0x400) % imagePlugin.GetSectorSize() != 0)
sbSize++; sbSize++;
byte[] sector = imagePlugin.ReadSector(partition.Start, sbSize); byte[] sector = imagePlugin.ReadSectors(partition.Start, sbSize);
if(sector.Length < Marshal.SizeOf(xfsSb)) if(sector.Length < Marshal.SizeOf(xfsSb))
return; return;