diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-25 16:12:36 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-25 16:12:36 +0100 |
| commit | 2bd2e28868d50a2f3ced8b1bfea68216ed35622a (patch) | |
| tree | 4bf376821d13f005d72cbf5feca5cb1f18ae60cd /Private/NewBoot/Source/FileReader.cxx | |
| parent | 9be51d883414584db0926ab854d6026e1785048b (diff) | |
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 <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot/Source/FileReader.cxx')
| -rw-r--r-- | Private/NewBoot/Source/FileReader.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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; |
