From 3215795dd5510b4b6e9a6ba2ca7fe62ee3d3a629 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Fri, 4 Jun 2021 14:49:37 +0100 Subject: [PATCH] Fix sectors in obsolete UDIF RO images. --- Aaru.Images/UDIF/Read.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Aaru.Images/UDIF/Read.cs b/Aaru.Images/UDIF/Read.cs index 952868ff5..7607eac67 100644 --- a/Aaru.Images/UDIF/Read.cs +++ b/Aaru.Images/UDIF/Read.cs @@ -268,10 +268,10 @@ namespace Aaru.DiscImages AaruConsole.DebugWriteLine("UDIF plugin", "Image application = {0} version {1}", _imageInfo.Application, _imageInfo.ApplicationVersion); - _imageInfo.Sectors = 0; - if(!fakeBlockChunks) { + _imageInfo.Sectors = 0; + if(blkxList.Count == 0) throw new ImageNotSupportedException("Could not retrieve block chunks. Please fill an issue and send it to us.");