Skip to content

Commit

Permalink
fixed: #363 #348
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyadanli committed Jun 19, 2022
1 parent 659d769 commit 38b9a8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RevokeMsgPatcher/Utils/FileUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public static string GetFileVersion(string path)
/// <returns></returns>
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);
Expand Down

0 comments on commit 38b9a8d

Please sign in to comment.