mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 15:27:46 +00:00
TAPE: Properly report a tape format error when a TPC format tape fails the record structure validation checks.
This commit is contained in:
parent
0f43551d8c
commit
00a8b74b66
@ -525,14 +525,15 @@ t_stat sim_tape_detach (UNIT *uptr)
|
||||
struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx;
|
||||
uint32 f = MT_GET_FMT (uptr);
|
||||
t_stat r;
|
||||
t_bool auto_format;
|
||||
t_bool auto_format = FALSE;
|
||||
|
||||
if ((uptr == NULL) || !(uptr->flags & UNIT_ATT))
|
||||
return SCPE_IERR;
|
||||
|
||||
if (uptr->io_flush)
|
||||
uptr->io_flush (uptr); /* flush buffered data */
|
||||
auto_format = ctx->auto_format;
|
||||
if (ctx)
|
||||
auto_format = ctx->auto_format;
|
||||
|
||||
sim_tape_clr_async (uptr);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user