Skip to content

Commit

Permalink
[#50] MDOS: Disk verification (Part 3.1: Fixed limits of "Last seeked…
Browse files Browse the repository at this point in the history
… cylinder" value)
  • Loading branch information
tomas-nestorovic committed Mar 31, 2020
1 parent f9b16ac commit c916d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Main/src/MDOS2_Boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
}
//TODO: boot->current.diskFlags.fortyCylDiskInD80
// - verifying Current drive information (continued)
if (const TStdWinError err=vp.WarnIfUnsignedValueOutOfRange( CHS, BOOT_SECTOR_LOCATION_STRING, _T("Last seeked cylinder"), boot->current.driveLastSeekedCylinder, (BYTE)1, (BYTE)(boot->current.nCylinders-1) ))
if (const TStdWinError err=vp.WarnIfUnsignedValueOutOfRange( CHS, BOOT_SECTOR_LOCATION_STRING, _T("Last seeked cylinder"), boot->current.driveLastSeekedCylinder, (BYTE)0, (BYTE)(boot->current.nCylinders-1) ))
if (err!=ERROR_INVALID_PARAMETER)
return vp.TerminateAll(err);
//TODO: boot->current.driveFlags.driveD40 checked against 5.25" PC drive
Expand Down

0 comments on commit c916d03

Please sign in to comment.