[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:
Sylvain Petreolle 2013-05-24 12:24:27 +00:00
parent 44787d9e81
commit e29102f914

View file

@ -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;
}