Changeset 90067 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Jul 6, 2021 1:36:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/efi/efivarstorevfs.cpp
r90065 r90067 1611 1611 uint32_t const cBlocks = (uint32_t)(cbStore / cbBlock); 1612 1612 1613 EFI_GUID GuidVarStore = EFI_VARSTORE_FILESYSTEM_GUID; 1614 EFI_GUID GuidVarAuth = EFI_VARSTORE_HEADER_GUID_AUTHENTICATED_VARIABLE; 1613 1615 EFI_FIRMWARE_VOLUME_HEADER FvHdr; RT_ZERO(FvHdr); 1614 1616 EFI_FW_BLOCK_MAP BlockMap; RT_ZERO(BlockMap); … … 1616 1618 1617 1619 /* Firmware volume header. */ 1618 FvHdr.GuidFilesystem = EFI_VARSTORE_FILESYSTEM_GUID;1620 memcpy(&FvHdr.GuidFilesystem, &GuidVarStore, sizeof(GuidVarStore)); 1619 1621 FvHdr.cbFv = RT_H2LE_U64(cbStore); 1620 1622 FvHdr.u32Signature = RT_H2LE_U32(EFI_FIRMWARE_VOLUME_HEADER_SIGNATURE); … … 1640 1642 1641 1643 /* Variable store header. */ 1642 VarStoreHdr.GuidVarStore = EFI_VARSTORE_HEADER_GUID_AUTHENTICATED_VARIABLE;1644 memcpy(&VarStoreHdr.GuidVarStore, &GuidVarAuth, sizeof(GuidVarAuth)); 1643 1645 VarStoreHdr.cbVarStore = cbStore - sizeof(FvHdr) - sizeof(BlockMap); 1644 1646 VarStoreHdr.bFmt = EFI_VARSTORE_HEADER_FMT_FORMATTED;
Note:
See TracChangeset
for help on using the changeset viewer.