[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(); _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