Fix missed AlignToBoundary case

This commit is contained in:
Matt Nadareski
2025-07-24 10:47:21 -04:00
parent b6561719a7
commit e6742fe889

View File

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