mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-13 06:34:42 -04:00
Add missing cast
This commit is contained in:
parent
a529951b95
commit
0a1987fcde
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* fssbuilder.cpp
|
||||
/* fssbuilder.cpp
|
||||
|
||||
Copyright (c) 2015, Nikolaj Schlej. All rights reserved.
|
||||
This program and the accompanying materials
|
||||
|
@ -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), &calculatedCrc, sizeof(UINT32));
|
||||
body.replace((const UINT32)body.size() - sizeof(UINT32), sizeof(UINT32), (const char *)&calculatedCrc, sizeof(UINT32));
|
||||
}
|
||||
else if(type == Types::EvsaStore) {
|
||||
UByteArray store = header + body;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue