mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Set verification as failed in dicformat as soon as any block fails.
This commit is contained in:
@@ -1791,9 +1791,12 @@ namespace DiscImageChef.DiscImages
|
||||
verifyCrc = crcVerify.Final();
|
||||
|
||||
if(BitConverter.ToUInt64(verifyCrc, 0) != blockHeader.cmpCrc64)
|
||||
{
|
||||
DicConsole.DebugWriteLine("DiscImageChef format plugin",
|
||||
"Expected block CRC {0:X16} but got {1:X16}",
|
||||
blockHeader.cmpCrc64, BitConverter.ToUInt64(verifyCrc, 0));
|
||||
"Expected block CRC {0:X16} but got {1:X16}", blockHeader.cmpCrc64,
|
||||
BitConverter.ToUInt64(verifyCrc, 0));
|
||||
return false;
|
||||
}
|
||||
|
||||
break;
|
||||
case BlockType.DeDuplicationTable:
|
||||
@@ -1829,7 +1832,7 @@ namespace DiscImageChef.DiscImages
|
||||
if(BitConverter.ToUInt64(verifyCrc, 0) != ddtHeader.cmpCrc64)
|
||||
{
|
||||
DicConsole.DebugWriteLine("DiscImageChef format plugin",
|
||||
"Expected block CRC {0:X16} but got {1:X16}", ddtHeader.cmpCrc64,
|
||||
"Expected DDT CRC {0:X16} but got {1:X16}", ddtHeader.cmpCrc64,
|
||||
BitConverter.ToUInt64(verifyCrc, 0));
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user