mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-25 01:18:22 +08:00
fix compilation
This commit is contained in:
parent
ec43311867
commit
da7eb36ffa
@ -133,7 +133,7 @@ UINT32 sizeOfSectionHeader(const EFI_COMMON_SECTION_HEADER* header)
|
|||||||
case EFI_SECTION_GUID_DEFINED: {
|
case EFI_SECTION_GUID_DEFINED: {
|
||||||
if (!extended) {
|
if (!extended) {
|
||||||
const EFI_GUID_DEFINED_SECTION* gdsHeader = (const EFI_GUID_DEFINED_SECTION*)header;
|
const EFI_GUID_DEFINED_SECTION* gdsHeader = (const EFI_GUID_DEFINED_SECTION*)header;
|
||||||
if (QByteArray((const char*)&gdsHeader->SectionDefinitionGuid, sizeof(EFI_GUID)) == EFI_FIRMWARE_CONTENTS_SIGNED_GUID) {
|
if (UByteArray((const char*)&gdsHeader->SectionDefinitionGuid, sizeof(EFI_GUID)) == EFI_FIRMWARE_CONTENTS_SIGNED_GUID) {
|
||||||
const WIN_CERTIFICATE* certificateHeader = (const WIN_CERTIFICATE*)(gdsHeader + 1);
|
const WIN_CERTIFICATE* certificateHeader = (const WIN_CERTIFICATE*)(gdsHeader + 1);
|
||||||
return gdsHeader->DataOffset + certificateHeader->Length;
|
return gdsHeader->DataOffset + certificateHeader->Length;
|
||||||
}
|
}
|
||||||
@ -141,7 +141,7 @@ UINT32 sizeOfSectionHeader(const EFI_COMMON_SECTION_HEADER* header)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const EFI_GUID_DEFINED_SECTION2* gdsHeader = (const EFI_GUID_DEFINED_SECTION2*)header;
|
const EFI_GUID_DEFINED_SECTION2* gdsHeader = (const EFI_GUID_DEFINED_SECTION2*)header;
|
||||||
if (QByteArray((const char*)&gdsHeader->SectionDefinitionGuid, sizeof(EFI_GUID)) == EFI_FIRMWARE_CONTENTS_SIGNED_GUID) {
|
if (UByteArray((const char*)&gdsHeader->SectionDefinitionGuid, sizeof(EFI_GUID)) == EFI_FIRMWARE_CONTENTS_SIGNED_GUID) {
|
||||||
const WIN_CERTIFICATE* certificateHeader = (const WIN_CERTIFICATE*)(gdsHeader + 1);
|
const WIN_CERTIFICATE* certificateHeader = (const WIN_CERTIFICATE*)(gdsHeader + 1);
|
||||||
return gdsHeader->DataOffset + certificateHeader->Length;
|
return gdsHeader->DataOffset + certificateHeader->Length;
|
||||||
}
|
}
|
||||||
|
@ -755,7 +755,7 @@ out:
|
|||||||
}
|
}
|
||||||
if (parser->newPeiCoreEntryPoint && parser->peiCoreEntryPoint != parser->newPeiCoreEntryPoint) {
|
if (parser->newPeiCoreEntryPoint && parser->peiCoreEntryPoint != parser->newPeiCoreEntryPoint) {
|
||||||
// Replace last occurrence of oldPeiCoreEntryPoint with newPeiCoreEntryPoint
|
// Replace last occurrence of oldPeiCoreEntryPoint with newPeiCoreEntryPoint
|
||||||
QByteArray old((char*)&parser->peiCoreEntryPoint, sizeof(parser->peiCoreEntryPoint));
|
UByteArray old((char*)&parser->peiCoreEntryPoint, sizeof(parser->peiCoreEntryPoint));
|
||||||
int i = vtf.lastIndexOf(old);
|
int i = vtf.lastIndexOf(old);
|
||||||
if (i == -1)
|
if (i == -1)
|
||||||
msg("patchVtf: PEI Core entry point can't be found in VTF. VTF not patched.", index);
|
msg("patchVtf: PEI Core entry point can't be found in VTF. VTF not patched.", index);
|
||||||
|
Loading…
Reference in New Issue
Block a user