Use explicit endianness read

This commit is contained in:
Matt Nadareski
2024-12-16 14:38:42 -05:00
parent 2c3082d2cf
commit d8cf671a31

View File

@@ -44,7 +44,7 @@ namespace SabreTools.Compression.MSZIP
// Validate the header
var header = new BlockHeader();
header.Signature = source.ReadUInt16();
header.Signature = source.ReadUInt16LittleEndian();
if (header.Signature != 0x4B43)
throw new InvalidDataException(nameof(source));