From 8f00b6aff2b9a38268945c33f049fc1dcd395006 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Wed, 1 May 2019 22:54:55 +0100 Subject: [PATCH] Fix calculation of last block in resume file when tape. --- DiscImageChef.Core/Devices/Dumping/ResumeSupport.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DiscImageChef.Core/Devices/Dumping/ResumeSupport.cs b/DiscImageChef.Core/Devices/Dumping/ResumeSupport.cs index 9ec0779c1..ba6f3e627 100644 --- a/DiscImageChef.Core/Devices/Dumping/ResumeSupport.cs +++ b/DiscImageChef.Core/Devices/Dumping/ResumeSupport.cs @@ -136,7 +136,7 @@ namespace DiscImageChef.Core.Devices.Dumping Tries = new List(), CreationDate = DateTime.UtcNow, BadBlocks = new List(), - LastBlock = blocks - 1, + LastBlock = isTape ? 0 : blocks - 1, Tape = isTape }; currentTry = new DumpHardwareType