1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-26 11:12:19 -05:00

HTM was throwing an exception for ReadOnly files.

So, to fix this an explicit FileAccess had to be set. Package.Open uses
the default FileShare.None option. This causes a conflict and throws the
'UnauthorizedAccessException' exception. So, we just tell it that we are
there to read it and everything is fine.
This commit is contained in:
museun 2013-03-03 18:38:29 -05:00
parent 8faa0e6518
commit b7d78f27be

View File

@ -281,7 +281,7 @@ namespace thememan
try
{
using (Package zip = Package.Open(zipFile.FullName, FileMode.Open))
using (Package zip = Package.Open(zipFile.FullName, FileMode.Open, FileAccess.Read))
{
PackagePartCollection parts = zip.GetParts();