[FREELDR] Move MachInitializeBootDevices to BootMain

This commit is contained in:
Timo Kreuzer
2025-02-04 16:45:48 +02:00
parent f81c1910ee
commit 9daef292e9
2 changed files with 6 additions and 6 deletions
-6
View File
@@ -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) */
+6
View File
@@ -71,6 +71,12 @@ VOID __cdecl BootMain(IN PCCH CmdLine)
goto Quit;
}
if (!MachInitializeBootDevices())
{
UiMessageBoxCritical("Error when detecting hardware.");
goto Quit;
}
RunLoader();
Quit: