From f26e82d2bc75839645e7e8d447e702073b8a2ba9 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 3 Dec 2022 22:47:32 -0800 Subject: [PATCH] Fix some PE resource caching issues --- BurnOutSharp.Wrappers/PortableExecutable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BurnOutSharp.Wrappers/PortableExecutable.cs b/BurnOutSharp.Wrappers/PortableExecutable.cs index 50e8b0c0..ccfca30c 100644 --- a/BurnOutSharp.Wrappers/PortableExecutable.cs +++ b/BurnOutSharp.Wrappers/PortableExecutable.cs @@ -458,7 +458,7 @@ namespace BurnOutSharp.Wrappers lock (_sourceDataLock) { // Use the cached data if possible - if (_resourceData != null) + if (_resourceData != null && _resourceData.Count != 0) return _resourceData; // If we have no resource table, just return