Don't try to use disk extensions for non-disk devices (like actual floppies or

emulated ones on CD-boot). One of my laptops returns bogus drive parameters
and another one silently fails the read, previously preventing CD-boot on both.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30389 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2009-04-24 23:16:26 +00:00
parent 4219390212
commit 5c8e597e90

View File

@ -528,7 +528,8 @@ BIOSDrive::BIOSDrive(uint8 driveID)
{
TRACE(("drive ID %u\n", driveID));
if (get_ext_drive_parameters(driveID, &fParameters) != B_OK) {
if (driveID < 0x80
|| get_ext_drive_parameters(driveID, &fParameters) != B_OK) {
// old style CHS support
if (get_drive_parameters(driveID, &fParameters) != B_OK) {