From 9daef292e90f11e744d5c7b64396c6c62602f201 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 5 Oct 2024 18:33:56 +0200 Subject: [PATCH] [FREELDR] Move MachInitializeBootDevices to BootMain --- boot/freeldr/freeldr/bootmgr.c | 6 ------ boot/freeldr/freeldr/freeldr.c | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/boot/freeldr/freeldr/bootmgr.c b/boot/freeldr/freeldr/bootmgr.c index 51030b03641..0fe04a55813 100644 --- a/boot/freeldr/freeldr/bootmgr.c +++ b/boot/freeldr/freeldr/bootmgr.c @@ -363,12 +363,6 @@ VOID RunLoader(VOID) ULONG SelectedOperatingSystem; ULONG i; - if (!MachInitializeBootDevices()) - { - UiMessageBoxCritical("Error when detecting hardware."); - return; - } - #ifdef _M_IX86 #ifndef UEFIBOOT /* Load additional SCSI driver (if any) */ diff --git a/boot/freeldr/freeldr/freeldr.c b/boot/freeldr/freeldr/freeldr.c index 612216b9c5b..e1c58709bda 100644 --- a/boot/freeldr/freeldr/freeldr.c +++ b/boot/freeldr/freeldr/freeldr.c @@ -71,6 +71,12 @@ VOID __cdecl BootMain(IN PCCH CmdLine) goto Quit; } + if (!MachInitializeBootDevices()) + { + UiMessageBoxCritical("Error when detecting hardware."); + goto Quit; + } + RunLoader(); Quit: