Fix writing cabinet file data

This commit is contained in:
Matt Nadareski
2023-01-03 00:19:03 -08:00
parent eefc52d1dd
commit 580bf0494d

View File

@@ -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