disk: BIOS: Skip drive if sector size is 0. Fixes #294

This commit is contained in:
mintsuki 2023-08-19 08:04:43 -05:00
parent 6ab35406d3
commit 10a7d39c66
1 changed files with 4 additions and 0 deletions

View File

@ -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;
if (volume->sector_size == 0) {
return false;
}
return true;
}