[FREELDR]: Report the correct number of BIOS (hard) disk drives detected, that is...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 9 May 2017 19:33:46 +0000 (19:33 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 9 May 2017 19:33:46 +0000 (19:33 +0000)
commitaf645ee7a2f1117b8946e6a34145c9c5e80f10e1
tree2fbb893e2a6961e1a3d48f37c754d92eca0f76a7
parent423102807dc61037490ce11ccf3c13f6d10c9180
[FREELDR]: Report the correct number of BIOS (hard) disk drives detected, that is, without any possible extra boot drive that went enumerated afterwards.
This fixes the list of disks enumerated in HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\MultifunctionAdapter\0\DiskController\0\DiskPeripheral\
and we now behave in this regards similarly to Windows 2003 & co.
I thank Lesan Ilie for reporting & testing, and Serge Gautherie and Peter Hater for reviewing.
This fixes a bug introduced in commit r59079.
CORE-13131

svn path=/trunk/; revision=74515
reactos/boot/freeldr/freeldr/arch/i386/hardware.c
reactos/boot/freeldr/freeldr/arch/i386/hwdisk.c