1
0
Fork 0
mirror of https://github.com/LongSoft/UEFITool.git synced 2025-05-30 23:15:16 -04:00

Fix crc pointer accessor

This commit is contained in:
vit9696 2018-08-31 17:44:16 +03:00
parent f7ddb4a4c1
commit a529951b95
2 changed files with 2 additions and 2 deletions

View file

@ -978,7 +978,7 @@ USTATUS FfsBuilder::buildNvramStore(const UModelIndex & index, UByteArray & stor
// Recalculate store checksum
UINT32 calculatedCrc = crc32(0, (const UINT8*)store.constData(), (const UINT32)store.size() - sizeof(UINT32));
// Write new checksum
body.replace((const UINT32)body.size() - sizeof(UINT32), sizeof(UINT32), (const char*)calculatedCrc, sizeof(UINT32));
body.replace((const UINT32)body.size() - sizeof(UINT32), sizeof(UINT32), &calculatedCrc, sizeof(UINT32));
}
else if(type == Types::EvsaStore) {
UByteArray store = header + body;