mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-25 00:05:07 +00:00
Fix missed AlignToBoundary case
This commit is contained in:
@@ -329,11 +329,7 @@ namespace SabreTools.Serialization.Deserializers
|
||||
baseRelocationTable.Add(baseRelocationBlock);
|
||||
|
||||
// Align to the DWORD boundary if we're not at the end
|
||||
if (data.Position < data.Length)
|
||||
{
|
||||
while (data.Position < data.Length && (data.Position % 4) != 0)
|
||||
_ = data.ReadByte();
|
||||
}
|
||||
data.AlignToBoundary(4);
|
||||
}
|
||||
|
||||
return [.. baseRelocationTable];
|
||||
|
||||
Reference in New Issue
Block a user