SCP: Fix error returned by detach_unit to SCPE_NOTATT when an attachable unit isn't currently attached
This commit is contained in:
parent
7c58a5038d
commit
8ad7dc2b93
1 changed files with 1 additions and 1 deletions
2
scp.c
2
scp.c
|
@ -5258,7 +5258,7 @@ if (!(uptr->flags & UNIT_ATT)) { /* not attached? */
|
|||
if (sim_switches & SIM_SW_REST) /* restoring? */
|
||||
return SCPE_OK; /* allow detach */
|
||||
else
|
||||
return SCPE_NOATT; /* complain */
|
||||
return SCPE_NOTATT; /* complain */
|
||||
}
|
||||
if ((dptr = find_dev_from_unit (uptr)) == NULL)
|
||||
return SCPE_OK;
|
||||
|
|
Loading…
Add table
Reference in a new issue