1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

Cleanup based on reports from Michael Bloom

This commit is contained in:
Mark Pizzolato
2012-03-22 12:20:00 -07:00
parent 3049f16af2
commit 0270d0ea0d
7 changed files with 31 additions and 42 deletions

View File

@@ -1151,9 +1151,9 @@ if (uptr == NULL)
if ((uptr->flags & UNIT_ATT) == 0)
return SCPE_UNATT;
dptr = find_dev_from_unit (uptr);
u = uptr - dptr->units;
if (dptr == NULL)
return SCPE_IERR;
u = uptr - dptr->units;
dtyp = GET_DTYPE (uptr->flags);
if ((dtyp == TYPE_7320) || (dtyp == TYPE_1301))