From acfebdfb9aec89a3c0914be8e9b0439a10120d5c Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 9 Mar 2024 08:46:17 +0100 Subject: HCoreLdr: Fix compiler errors. --- Private/NewBoot/BootKit/Arch/AHCI.hxx | 10 +++++----- Private/NewBoot/Source/BootMain.cxx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Private/NewBoot/BootKit/Arch/AHCI.hxx b/Private/NewBoot/BootKit/Arch/AHCI.hxx index 1f36ca00..32fe033c 100644 --- a/Private/NewBoot/BootKit/Arch/AHCI.hxx +++ b/Private/NewBoot/BootKit/Arch/AHCI.hxx @@ -20,17 +20,17 @@ class BDeviceAHCI final { HCORE_COPY_DEFAULT(BDeviceAHCI); struct AHCITraits final { - SizeT mBase{1024}; - Boolean mErr{false}; - Boolean mDetected{false}; + HCore::SizeT mBase{1024}; + HCore::Boolean mErr{false}; + HCore::Boolean mDetected{false}; operator bool() { return !mErr; } }; operator bool() { return Leak().mDetected; } - BDeviceAHCI& Read(WideChar* Buf, const SizeT& SecCount); - BDeviceAHCI& Write(WideChar* Buf, const SizeT& SecCount); + BDeviceAHCI& Read(HCore::WideChar* Buf, const HCore::SizeT& SecCount); + BDeviceAHCI& Write(HCore::WideChar* Buf, const HCore::SizeT& SecCount); AHCITraits& Leak(); diff --git a/Private/NewBoot/Source/BootMain.cxx b/Private/NewBoot/Source/BootMain.cxx index 67c6929a..fb516293 100644 --- a/Private/NewBoot/Source/BootMain.cxx +++ b/Private/NewBoot/Source/BootMain.cxx @@ -106,7 +106,7 @@ EFI_EXTERN_C EFI_API Int EfiMain(EfiHandlePtr ImageHandle, reinterpret_cast(blob)->eLfanew + ptrHdr->mSizeOfOptionalHeader + (sizeof(ExecHeader) + - sizeof(ExecOptionalHeader) + sizeof(U32))); + sizeof(ExecOptionalHeader) + sizeof(UInt32))); while (blobKrnl->mCharacteristics != 0x00000020) { blobKrnl = blobKrnl + sizeof(ExecSectionHeader); -- cgit v1.2.3