mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-13 06:34:42 -04:00
Fix EC region parse
Fixing Copy&Paste bug
This commit is contained in:
parent
ea5ae2f2c8
commit
dcdb85497d
1 changed files with 3 additions and 3 deletions
|
@ -358,9 +358,9 @@ UINT8 FfsEngine::parseIntelImage(const QByteArray & intelImage, QModelIndex & in
|
||||||
UINT32 ecEnd = 0;
|
UINT32 ecEnd = 0;
|
||||||
if (descriptorVersion == 2) {
|
if (descriptorVersion == 2) {
|
||||||
if (regionSection->EcLimit) {
|
if (regionSection->EcLimit) {
|
||||||
pdrBegin = calculateRegionOffset(regionSection->EcBase);
|
ecBegin = calculateRegionOffset(regionSection->EcBase);
|
||||||
pdrEnd = calculateRegionSize(regionSection->EcBase, regionSection->EcLimit);
|
ecEnd = calculateRegionSize(regionSection->EcBase, regionSection->EcLimit);
|
||||||
pdr = intelImage.mid(ecBegin, ecEnd);
|
ec = intelImage.mid(ecBegin, ecEnd);
|
||||||
ecEnd += ecBegin;
|
ecEnd += ecBegin;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue