Fix #201 drive swap DOS3.3 disk status Sector drive 2 now displaying properly due to fence post error

This commit is contained in:
michaelangel007 2014-07-27 22:40:10 -07:00
parent 5024608885
commit b2e5770e51

View File

@ -612,11 +612,11 @@ void FrameDrawDiskStatus( HDC passdc )
// Try DOS3.3 Sector
if( !isProDOS )
{
int DOS33drive = mem[ 0xB7EA ];
int DOS33drive = mem[ 0xB7EA ]; // 1 or 2
int DOS33sector = mem[ 0xB7ED ];
int DOS33track = mem[ 0xB7EC ];
if ((DOS33drive >= 0 && DOS33drive < 2)
if ((DOS33drive >= 1 && DOS33drive <= 2)
&& (DOS33track >= 0 && DOS33track < 40)
&& (DOS33sector >= 0 && DOS33sector < 16))
{