diff --git a/src/Zip/ZipFile.cs b/src/Zip/ZipFile.cs index 814d9bdab..d2bdb420a 100644 --- a/src/Zip/ZipFile.cs +++ b/src/Zip/ZipFile.cs @@ -1023,7 +1023,7 @@ long TestLocalHeader(ZipEntry entry, HeaderTest tests) throw new ZipException(string.Format("Wrong local header signature @{0:X}", offsetOfFirstEntry + entry.Offset)); } - short extractVersion = ( short )ReadLEUshort(); + short extractVersion = ( short ) (ReadLEUshort() & 0x00ff); short localFlags = ( short )ReadLEUshort(); short compressionMethod = ( short )ReadLEUshort(); short fileTime = ( short )ReadLEUshort();