From 38b9a8d7cb1703841a0d4cf90cc70494074bd534 Mon Sep 17 00:00:00 2001 From: huiyadanli Date: Sun, 19 Jun 2022 19:27:05 +0800 Subject: [PATCH] fixed: #363 #348 --- RevokeMsgPatcher/Utils/FileUtil.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/RevokeMsgPatcher/Utils/FileUtil.cs b/RevokeMsgPatcher/Utils/FileUtil.cs index 8e0d04b..bce07dc 100644 --- a/RevokeMsgPatcher/Utils/FileUtil.cs +++ b/RevokeMsgPatcher/Utils/FileUtil.cs @@ -35,6 +35,7 @@ namespace RevokeMsgPatcher.Utils /// public static string ComputeFileSHA1(string s) { + File.SetAttributes(s, FileAttributes.Normal); FileStream file = new FileStream(s, FileMode.Open); SHA1 sha1 = new SHA1CryptoServiceProvider(); byte[] retval = sha1.ComputeHash(file);