Better handle version 3 CFB files, probably (fixes #3)

This commit is contained in:
Matt Nadareski
2024-04-02 12:54:54 -04:00
parent f448314309
commit 54b1eef8ae

View File

@@ -191,6 +191,10 @@ namespace SabreTools.Serialization.Streams
if (currentSector == SectorNumber.ENDOFCHAIN)
break;
// If we have a free sector for a version 3 filie
if (directorySectorCount == int.MaxValue && currentSector == SectorNumber.FREESECT)
break;
// If we have a readable sector
if (currentSector <= SectorNumber.MAXREGSECT)
{