Quantcast
Channel: sharpcompress Discussions Rss Feed
Viewing all articles
Browse latest Browse all 239

New Post: FlagUtility.HasFlags not working correctly in Windows 8

$
0
0

I was having problems opening some rar archives in a Windows 8 app because the FilePath was corrupted (had the '\0' and extra chars.

I stepped through the code, and saw that when calling HasFlags to check for Unicode, the enumVal is a negative number, and so enumVal.GetHashCode() is < 0, which is still correct.

The easiest fix, since the code converts the values to UInt32 is to make FileFlags an enum of type ushort, which resolved my problems.


Viewing all articles
Browse latest Browse all 239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>