On ISO9660 if the file is empty, do not store extent.

This commit is contained in:
2019-07-19 15:01:24 +01:00
parent 74a02a3194
commit 8a6a6c32ec

View File

@@ -39,7 +39,7 @@ namespace DiscImageChef.Filesystems.ISO9660
DecodedDirectoryEntry entry = new DecodedDirectoryEntry();
entry.Extent = record.extent;
entry.Extent = record.size == 0 ? 0 : record.extent;
entry.Size = record.size;
entry.Flags = record.flags;
entry.FileUnitSize = record.file_unit_size;