mirror of
https://github.com/reactos/reactos.git
synced 2026-06-05 11:12:56 +08:00
[FREELDR] Move MachInitializeBootDevices to BootMain
This commit is contained in:
@@ -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) */
|
||||
|
||||
@@ -71,6 +71,12 @@ VOID __cdecl BootMain(IN PCCH CmdLine)
|
||||
goto Quit;
|
||||
}
|
||||
|
||||
if (!MachInitializeBootDevices())
|
||||
{
|
||||
UiMessageBoxCritical("Error when detecting hardware.");
|
||||
goto Quit;
|
||||
}
|
||||
|
||||
RunLoader();
|
||||
|
||||
Quit:
|
||||
|
||||
Reference in New Issue
Block a user