mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-08-05 09:26:05 +00:00
Fixes #10.
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user