diff --git a/BurnOutSharp.Wrappers/MicrosoftCabinet.cs b/BurnOutSharp.Wrappers/MicrosoftCabinet.cs index 029914c8..2ff348a7 100644 --- a/BurnOutSharp.Wrappers/MicrosoftCabinet.cs +++ b/BurnOutSharp.Wrappers/MicrosoftCabinet.cs @@ -386,7 +386,7 @@ namespace BurnOutSharp.Wrappers // Create the output file data byte[] fileData = new byte[file.FileSize]; - if (fileData.Length < file.FolderStartOffset + file.FileSize) + if (folderData.Length < file.FolderStartOffset + file.FileSize) return null; // Get the segment that represents this file