From 2eb529e37a5e10ea2483fce04de778ac13be6f1d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 14 Feb 2024 09:38:17 +0100 Subject: HCR-18: Fixed UEFI bootloader, loading stuff correctly. Signed-off-by: Amlal El Mahrouss --- Private/NewBoot/BootKit/BootKit.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Private/NewBoot/BootKit') diff --git a/Private/NewBoot/BootKit/BootKit.hxx b/Private/NewBoot/BootKit/BootKit.hxx index 0c747643..d8865712 100644 --- a/Private/NewBoot/BootKit/BootKit.hxx +++ b/Private/NewBoot/BootKit/BootKit.hxx @@ -80,6 +80,11 @@ class BFileReader final { EfiFileProtocolPtr File() { return mFile; } UInt64 &Size() { return mSizeFile; } + UInt64 &Size(const UInt64 &Sz) { + mSizeFile = Sz; + return mSizeFile; + } + public: BFileReader &operator=(const BFileReader &) = default; BFileReader(const BFileReader &) = default; -- cgit v1.2.3