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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user