[FREELDR] Move MachInitializeBootDevices to BootMain

This commit is contained in:
Timo Kreuzer 2024-10-05 18:33:56 +02:00
parent f81c1910ee
commit 9daef292e9
2 changed files with 6 additions and 6 deletions

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) */

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: