https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9daef292e90f11e744d5c…
commit 9daef292e90f11e744d5c7b64396c6c62602f201
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sat Oct 5 18:33:56 2024 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Tue Feb 4 16:45:48 2025 +0200
[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: