disk: BIOS: Skip drive if sector size is 0. Fixes #294
This commit is contained in:
parent
50dab6c2f1
commit
4abedffb43
|
@ -218,6 +218,10 @@ static bool detect_sector_size(struct volume *volume) {
|
||||||
|
|
||||||
volume->sector_size = sector_size_a > sector_size_b ? sector_size_a : sector_size_b;
|
volume->sector_size = sector_size_a > sector_size_b ? sector_size_a : sector_size_b;
|
||||||
|
|
||||||
|
if (volume->sector_size == 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue