mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 16:08:23 +08:00
Bugfix for UD 0.1.0
- use of destroyed object due, local copy needed
This commit is contained in:
parent
4381bc6103
commit
31fe6c7620
@ -35,7 +35,8 @@ USTATUS FitParser::parse(const UModelIndex & index, const UModelIndex & lastVtfI
|
|||||||
model->setFixed(index, true);
|
model->setFixed(index, true);
|
||||||
|
|
||||||
// Special case of FIT header
|
// Special case of FIT header
|
||||||
const FIT_ENTRY* fitHeader = (const FIT_ENTRY*)(model->body(fitIndex).constData() + fitOffset);
|
UByteArray fitBody = model->body(fitIndex);
|
||||||
|
const FIT_ENTRY* fitHeader = (const FIT_ENTRY*)(fitBody.constData() + fitOffset);
|
||||||
|
|
||||||
// Check FIT checksum, if present
|
// Check FIT checksum, if present
|
||||||
UINT32 fitSize = (fitHeader->Size & 0xFFFFFF) << 4;
|
UINT32 fitSize = (fitHeader->Size & 0xFFFFFF) << 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user