Fix some PE resource caching issues

This commit is contained in:
Matt Nadareski
2022-12-03 22:47:32 -08:00
parent 65892f067a
commit f26e82d2bc

View File

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