Calculate checksum for unknown volumes

This commit is contained in:
Nikolaj Schlej 2015-02-18 15:49:17 +01:00
parent 0b3c2aee9c
commit 29a41e880c

View File

@ -815,7 +815,7 @@ UINT8 FfsEngine::parseVolume(const QByteArray & volume, QModelIndex & index, co
// Check header checksum by recalculating it
bool msgInvalidChecksum = false;
if (!volumeIsUnknown && calculateChecksum16((const UINT16*)volumeHeader, volumeHeader->HeaderLength))
if (calculateChecksum16((const UINT16*)volumeHeader, volumeHeader->HeaderLength))
msgInvalidChecksum = true;
// Get info