[CHDFile] Ensure CHD is not blocking DFD

This commit is contained in:
Matt Nadareski
2018-02-21 10:54:43 -08:00
parent 4c6884d2a5
commit 61fb788800

View File

@@ -173,7 +173,12 @@ namespace SabreTools.Library.FileTypes
_headerVersion = ValidateHeaderVersion();
if (_headerVersion != null)
{
byte[] hash = GetHashFromHeader();
if (hash != null)
{
if (hash.Length == Constants.MD5Length)
{
_md5 = hash;
@@ -183,6 +188,8 @@ namespace SabreTools.Library.FileTypes
_sha1 = hash;
}
}
}
}
#endregion