More accurately align the Reader to the 2-byte boundary

This commit is contained in:
Michael Becker 2014-11-28 01:01:50 -05:00
parent 1923c141cf
commit ea4d34674a

View File

@ -161,7 +161,9 @@ namespace UniversalEditor.DataFormats.FileSystem.ISO
ushort unknown7 = br.ReadUInt16(); // 256 256
string fileName = br.ReadLengthPrefixedString();
if (fileName.Length % 2 == 0) br.ReadByte();
// align the reader to a multiple of 2 bytes
br.Align(2);
File file = fsom.AddFile(fileName);
file.Size = dataLength;