Help freeloader stop crashing from divide-by-zero, provoked by drain-bamaged BIOS.
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/pcdisk.c
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/pcdisk.c 2005-01-27 15:28:08 UTC (rev 13338) +++ trunk/reactos/boot/freeldr/freeldr/arch/i386/pcdisk.c 2005-01-27 21:12:05 UTC (rev 13339) @@ -146,7 +146,9 @@
// // Get the drive geometry //
- if (!MachDiskGetDriveGeometry(DriveNumber, &DriveGeometry))
+ if (!MachDiskGetDriveGeometry(DriveNumber, &DriveGeometry) ||
+ DriveGeometry.Sectors == 0 ||
+ DriveGeometry.Heads == 0)
{ return FALSE; }