mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 04:37:15 +00:00
Help freeloader stop crashing from divide-by-zero, provoked by drain-bamaged BIOS.
svn path=/trunk/; revision=13339
This commit is contained in:
parent
2829fb845f
commit
60d9e9aa67
1 changed files with 3 additions and 1 deletions
|
@ -146,7 +146,9 @@ static BOOL PcDiskReadLogicalSectorsCHS(U32 DriveNumber, U64 SectorNumber, U32 S
|
||||||
//
|
//
|
||||||
// Get the drive geometry
|
// Get the drive geometry
|
||||||
//
|
//
|
||||||
if (!MachDiskGetDriveGeometry(DriveNumber, &DriveGeometry))
|
if (!MachDiskGetDriveGeometry(DriveNumber, &DriveGeometry) ||
|
||||||
|
DriveGeometry.Sectors == 0 ||
|
||||||
|
DriveGeometry.Heads == 0)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue