DISK: Fix off by one error in reporting RSTS file structure info
This fixes issue #1106 -- the last sector number reported was off by one (sector past the last free sector).
This commit is contained in:
parent
eac94b4bdb
commit
efb83fa831
1 changed files with 1 additions and 1 deletions
|
@ -1952,7 +1952,7 @@ if (uar != 0) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scanDone:
|
scanDone:
|
||||||
*result = (t_offset)(blocks + 1) * context->pcs;
|
*result = ((t_offset)(blocks + 1) * context->pcs) - 1;
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue