Fix reading resource table from stream

This commit is contained in:
Matt Nadareski
2021-09-10 16:21:55 -07:00
parent e510915098
commit 44fac8cc92

View File

@@ -234,7 +234,7 @@ namespace BurnOutSharp.ExecutableType.Microsoft
var table = pex.GetLastSection(".rsrc", true);
if (table != null && table.VirtualSize > 0)
{
int tableAddress = (int)table.PointerToRawData;
stream.Seek((int)table.PointerToRawData, SeekOrigin.Begin);
pex.ResourceSection = ResourceSection.Deserialize(stream, pex.SectionTable);
}
}