From 3977342a671b13bc079b059f38c86dfe9e8d6cf7 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 31 Dec 2022 11:39:35 -0800 Subject: [PATCH] Fix empty-not-null data --- BurnOutSharp.Wrappers/MicrosoftCabinet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BurnOutSharp.Wrappers/MicrosoftCabinet.cs b/BurnOutSharp.Wrappers/MicrosoftCabinet.cs index 827ded85..b9e0934a 100644 --- a/BurnOutSharp.Wrappers/MicrosoftCabinet.cs +++ b/BurnOutSharp.Wrappers/MicrosoftCabinet.cs @@ -376,7 +376,7 @@ namespace BurnOutSharp.Wrappers // Get the parent folder data byte[] folderData = GetUncompressedData((int)file.FolderIndex); - if (folderData == null) + if (folderData == null || folderData.Length == 0) return null; // Get the segment that represents this file