Skip to content

Commit 9daef29

Browse files
committed
[FREELDR] Move MachInitializeBootDevices to BootMain
1 parent f81c191 commit 9daef29

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

boot/freeldr/freeldr/bootmgr.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,6 @@ VOID RunLoader(VOID)
363363
ULONG SelectedOperatingSystem;
364364
ULONG i;
365365

366-
if (!MachInitializeBootDevices())
367-
{
368-
UiMessageBoxCritical("Error when detecting hardware.");
369-
return;
370-
}
371-
372366
#ifdef _M_IX86
373367
#ifndef UEFIBOOT
374368
/* Load additional SCSI driver (if any) */

boot/freeldr/freeldr/freeldr.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ VOID __cdecl BootMain(IN PCCH CmdLine)
7171
goto Quit;
7272
}
7373

74+
if (!MachInitializeBootDevices())
75+
{
76+
UiMessageBoxCritical("Error when detecting hardware.");
77+
goto Quit;
78+
}
79+
7480
RunLoader();
7581

7682
Quit:

0 commit comments

Comments
 (0)