mirror of
https://github.com/reactos/reactos.git
synced 2025-04-11 16:24:39 +00:00
[FREELDR]
Take in account the boot disk in the number of detected disks. It allows booting without a hard disk (e.g cdrom/floppy alone with an USB storage device) svn path=/trunk/; revision=59079
This commit is contained in:
parent
44787d9e81
commit
e29102f914
1 changed files with 4 additions and 2 deletions
|
@ -313,8 +313,6 @@ HwInitializeBiosDisks(VOID)
|
|||
memset((PVOID) DISKREADBUFFER, 0xcd, 512);
|
||||
}
|
||||
DiskReportError(TRUE);
|
||||
TRACE("BIOS reports %d harddisk%s\n",
|
||||
(int)DiskCount, (DiskCount == 1) ? "": "s");
|
||||
|
||||
/* Get the drive we're booting from */
|
||||
MachDiskGetBootPath(BootPath, sizeof(BootPath));
|
||||
|
@ -349,8 +347,12 @@ HwInitializeBiosDisks(VOID)
|
|||
reactos_disk_count++;
|
||||
|
||||
FsRegisterDevice(BootPath, &DiskVtbl);
|
||||
DiskCount++;
|
||||
}
|
||||
|
||||
PcBiosDiskCount = DiskCount;
|
||||
TRACE("BIOS reports %d harddisk%s\n",
|
||||
(int)DiskCount, (DiskCount == 1) ? "": "s");
|
||||
|
||||
return DiskCount != 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue