From 2bd2e28868d50a2f3ced8b1bfea68216ed35622a Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 25 Feb 2024 16:12:36 +0100 Subject: WiP: See below. - Reworking bootloader to adapt if kernel and programs are already here or not for HCoreLdr. - Working on IDT support for HCoreKrnl. - Add Award and Mahrouss Logic logo in recovery-mode for HCoreKrnl. - Working on reading .NewBoot section in HCoreLdr. Signed-off-by: Amlal El Mahrouss --- Private/NewBoot/Source/FileReader.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Private/NewBoot/Source/FileReader.cxx') diff --git a/Private/NewBoot/Source/FileReader.cxx b/Private/NewBoot/Source/FileReader.cxx index 193184c4..16197164 100644 --- a/Private/NewBoot/Source/FileReader.cxx +++ b/Private/NewBoot/Source/FileReader.cxx @@ -86,7 +86,7 @@ BFileReader::BFileReader(const CharacterType* path, EfiHandlePtr ImageHandle) { mSizeFile = 0; mFile = kernelFile; - mErrorCode = kNotSupported; + mErrorCode = kOperationOkay; } BFileReader::~BFileReader() { @@ -107,6 +107,8 @@ BFileReader::~BFileReader() { Void BFileReader::ReadAll() { /// Allocate Handover page. + if (this->mErrorCode != kOperationOkay) return; + if (mBlob == nullptr) { UInt8* blob = (UInt8*)hTransferBufferAddress; -- cgit v1.2.3