mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 07:58:22 +08:00
Fix FIT entry engine checksum (#189)
This commit is contained in:
parent
2ef8d770e4
commit
516949a6e6
@ -3668,7 +3668,6 @@ USTATUS FfsParser::parseFit(const UModelIndex & index)
|
||||
// Calculate FIT entry checksum
|
||||
UByteArray tempFIT = model->body(fitIndex).mid(fitOffset, fitSize);
|
||||
FIT_ENTRY* tempFitHeader = (FIT_ENTRY*)tempFIT.data();
|
||||
tempFitHeader->CsFlag = 0;
|
||||
tempFitHeader->Checksum = 0;
|
||||
UINT8 calculated = calculateChecksum8((const UINT8*)tempFitHeader, fitSize);
|
||||
if (calculated != fitHeader->Checksum) {
|
||||
|
Loading…
Reference in New Issue
Block a user