From da7eb36ffaa7b67bdc3c3ada652aa19f05f5b955 Mon Sep 17 00:00:00 2001 From: Dmitry Frolov Date: Thu, 23 Aug 2018 10:35:41 +0300 Subject: [PATCH] fix compilation --- common/ffs.cpp | 4 ++-- common/ffsbuilder.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/ffs.cpp b/common/ffs.cpp index 0138da3..0de196e 100644 --- a/common/ffs.cpp +++ b/common/ffs.cpp @@ -133,7 +133,7 @@ UINT32 sizeOfSectionHeader(const EFI_COMMON_SECTION_HEADER* header) case EFI_SECTION_GUID_DEFINED: { if (!extended) { 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); return gdsHeader->DataOffset + certificateHeader->Length; } @@ -141,7 +141,7 @@ UINT32 sizeOfSectionHeader(const EFI_COMMON_SECTION_HEADER* header) } else { 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); return gdsHeader->DataOffset + certificateHeader->Length; } diff --git a/common/ffsbuilder.cpp b/common/ffsbuilder.cpp index 59861b4..93cd939 100644 --- a/common/ffsbuilder.cpp +++ b/common/ffsbuilder.cpp @@ -755,7 +755,7 @@ out: } if (parser->newPeiCoreEntryPoint && parser->peiCoreEntryPoint != parser->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); if (i == -1) msg("patchVtf: PEI Core entry point can't be found in VTF. VTF not patched.", index);