mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-22 17:22:18 -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:
parent
8faa0e6518
commit
b7d78f27be
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user