adoconnection / SevenZipExtractor

C# wrapper for 7z.dll
MIT License
306 stars 83 forks source link

LZH format, throw InvalidCastException by unbox and implicit cast. #22

Closed sudoudaisuke closed 5 years ago

sudoudaisuke commented 6 years ago

Hello.

LZH(SevenZipFormat.Lzh) format's "GetProperty(fileIndex, ItemPropId.kpidSize)" is error. LZH format's kpidSize is UInt32, so unbox and implicit cast throws InvalidCastException.

(ulong)(object)0U; // error, unbox and implicit cast
(ulong)(dynamic)(object)0U; // success
adoconnection commented 6 years ago

Hi, thanks for pointing out!