mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[CHDFile] Ensure CHD is not blocking DFD
This commit is contained in:
@@ -173,7 +173,12 @@ namespace SabreTools.Library.FileTypes
|
|||||||
|
|
||||||
_headerVersion = ValidateHeaderVersion();
|
_headerVersion = ValidateHeaderVersion();
|
||||||
|
|
||||||
|
if (_headerVersion != null)
|
||||||
|
{
|
||||||
byte[] hash = GetHashFromHeader();
|
byte[] hash = GetHashFromHeader();
|
||||||
|
|
||||||
|
if (hash != null)
|
||||||
|
{
|
||||||
if (hash.Length == Constants.MD5Length)
|
if (hash.Length == Constants.MD5Length)
|
||||||
{
|
{
|
||||||
_md5 = hash;
|
_md5 = hash;
|
||||||
@@ -183,6 +188,8 @@ namespace SabreTools.Library.FileTypes
|
|||||||
_sha1 = hash;
|
_sha1 = hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user