diff options
| author | Amlal <amlal.elmahrouss@icloud.com> | 2024-10-26 12:32:03 +0200 |
|---|---|---|
| committer | Amlal <amlal.elmahrouss@icloud.com> | 2024-10-26 12:32:03 +0200 |
| commit | 5648d1024d7b12d5427a39c945b60b63a61dc52f (patch) | |
| tree | 4295524cf9c3112f8948cc7b352ff0520536eb77 | |
| parent | 05f085c9055fa5bd13bdba40fc40fb3f00d69fab (diff) | |
FIX: Fix boot_init_fb, by providing a correct return status upon completion.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
| -rw-r--r-- | dev/zba/src/HEL/AMD64/BootMain.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dev/zba/src/HEL/AMD64/BootMain.cc b/dev/zba/src/HEL/AMD64/BootMain.cc index e939ac18..9924450e 100644 --- a/dev/zba/src/HEL/AMD64/BootMain.cc +++ b/dev/zba/src/HEL/AMD64/BootMain.cc @@ -48,7 +48,7 @@ STATIC Bool boot_init_fb() noexcept kGopGuid = EfiGUID(EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID); kGop = nullptr; - if (BS->LocateProtocol(&kGopGuid, nullptr, (VoidPtr*)&kGop) /= kEfiOk) + if (BS->LocateProtocol(&kGopGuid, nullptr, (VoidPtr*)&kGop) != kEfiOk) return No; kGopStride = 4; @@ -64,9 +64,11 @@ STATIC Bool boot_init_fb() noexcept infoPtr->VerticalResolution == kExpectedHeight) { kGop->SetMode(kGop, i); - break; + return Yes; } } + + return No; } EXTERN_C VoidPtr boot_read_cr3(); |
