Don't try to unpack invalid IS-CAB files

This commit is contained in:
Matt Nadareski
2023-01-15 17:44:25 -08:00
parent 87c08d6fbd
commit e690f0137e

View File

@@ -55,6 +55,10 @@ namespace BurnOutSharp.FileType
// If an individual entry fails
try
{
// Check if the file is valid first
if (!cabfile.FileIsValid(i))
continue;
string filename = cabfile.FileName(i);
string tempFile;
try