mirror of https://github.com/acidanthera/audk.git
correct a wrong offset arithmetic, replace EFI_FAULT_TOLERANT_WRITE_HEADER with EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER. It will cause FTW write operation break.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7931 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
121ac75720
commit
4601f37455
|
@ -808,7 +808,7 @@ FtwGetLastWriteHeader (
|
|||
|
||||
*FtwWriteHeader = NULL;
|
||||
FtwHeader = (EFI_FAULT_TOLERANT_WRITE_HEADER *) (FtwWorkSpaceHeader + 1);
|
||||
Offset = sizeof (EFI_FAULT_TOLERANT_WRITE_HEADER);
|
||||
Offset = sizeof (EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER);
|
||||
|
||||
while (FtwHeader->Complete == FTW_VALID_STATE) {
|
||||
Offset += WRITE_TOTAL_SIZE (FtwHeader->NumberOfWrites, FtwHeader->PrivateDataSize);
|
||||
|
|
Loading…
Reference in New Issue