mirror of
https://github.com/SabreTools/SabreTools.Compression.git
synced 2026-07-09 02:16:47 +00:00
Use explicit endianness read
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user