diff options
author | ajrhacker <ajrhacker@users.noreply.github.com> | 2021-08-29 15:11:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-29 15:11:30 -0400 |
commit | 3e54ade4bc0cc52d641048e944d9db28074d3354 (patch) | |
tree | 48735c02ebb1dac58d7da11a3cb0388ac4230a35 | |
parent | 3cbc5b5e6a904a6b81a33bf2f32afdf229bd46ed (diff) | |
parent | c64af53210510baee118c6fa5e6208aed7b737f4 (diff) |
Merge pull request #8508 from jessexm/patch-2
wd177x_dsk.cpp: Add head count check
-rw-r--r-- | src/lib/formats/wd177x_dsk.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/formats/wd177x_dsk.cpp b/src/lib/formats/wd177x_dsk.cpp index da900b03db5..75f3396020f 100644 --- a/src/lib/formats/wd177x_dsk.cpp +++ b/src/lib/formats/wd177x_dsk.cpp @@ -441,8 +441,8 @@ void wd177x_format::check_compatibility(floppy_image *image, std::vector<int> &c int max_tracks, max_heads; image->get_maximal_geometry(max_tracks, max_heads); - // Fail if floppy drive can't handle track count - if(f.track_count > max_tracks) { + // Fail if floppy drive can't handle track or head count + if(f.track_count > max_tracks || f.head_count > max_heads) { goto fail; } |