[SabreTools, CHDFile] Fix sort issues

This commit is contained in:
Matt Nadareski
2017-12-15 13:40:15 -08:00
parent 7320d885a7
commit 06ecbe3cda
2 changed files with 7 additions and 6 deletions

View File

@@ -123,6 +123,13 @@ namespace SabreTools.Library.FileTypes
// Read and verify the CHD signature
m_signature = m_br.ReadBytes(8);
// If no signature could be read, return null
if (m_signature == null || m_signature.Length == 0)
{
return null;
}
for(int i = 0; i < 8; i++)
{
if (m_signature[i] != Constants.CHDSignatureBytes[i])