On raw image do not raise an exception if asked for partitions and the underlying image is not an optical disc.

This commit is contained in:
2019-02-27 00:36:15 +00:00
parent aa45f23711
commit bfe254279c

View File

@@ -110,8 +110,7 @@ namespace DiscImageChef.DiscImages
{
get
{
if(imageInfo.XmlMediaType != XmlMediaType.OpticalDisc)
throw new FeatureUnsupportedImageException("Feature not supported by image format");
if(imageInfo.XmlMediaType != XmlMediaType.OpticalDisc) return null;
List<Partition> parts = new List<Partition>();
Partition part = new Partition