summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/flopimg.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2021-04-28 16:17:41 +0200
committer Olivier Galibert <galibert@pobox.com>2021-04-28 16:17:56 +0200
commit8709e06b673765ef76594de2878a4c48aa011b42 (patch)
tree723bf2b9ac26e8796de8001ac8e0ea3e85e92606 /src/lib/formats/flopimg.cpp
parent3b24032ba84a083a8f93274f10136a3f14d522d0 (diff)
floppy: start block-devicing fielsystem support
Diffstat (limited to 'src/lib/formats/flopimg.cpp')
-rw-r--r--src/lib/formats/flopimg.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/formats/flopimg.cpp b/src/lib/formats/flopimg.cpp
index a1bdfb83034..ba75a1ed7b8 100644
--- a/src/lib/formats/flopimg.cpp
+++ b/src/lib/formats/flopimg.cpp
@@ -936,6 +936,9 @@ void floppy_image::get_actual_geometry(int &_tracks, int &_heads)
goto head_done;
maxh--;
}
+ else
+ maxh = -1;
+
head_done:
_tracks = (maxt+4)/4;
_heads = maxh+1;