Fixes #10.
This commit is contained in:
parent
a108289ca2
commit
3ed8f0b974
|
@ -1052,7 +1052,7 @@ public class ProdosFormatDisk extends FormattedDisk {
|
|||
int blocksOnDisk = getBitmapLength();
|
||||
while (block < blocksOnDisk) {
|
||||
if (isBlockFree(volumeBitmap,block)) {
|
||||
if ((block+1) * BLOCK_SIZE < getPhysicalSize()) {
|
||||
if ((block+1) * BLOCK_SIZE <= getPhysicalSize()) {
|
||||
return block;
|
||||
}
|
||||
throw new ProdosDiskSizeDoesNotMatchException(
|
||||
|
|
Loading…
Reference in New Issue