From d6335200dc41b4ddb75b0553537fdbd9582b3d25 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 1 Feb 2020 14:25:40 +0200 Subject: [PATCH] Max allowed CHS head is 16. --- od-win32/hardfile_win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/od-win32/hardfile_win32.cpp b/od-win32/hardfile_win32.cpp index 05d68f0b..f38206f5 100644 --- a/od-win32/hardfile_win32.cpp +++ b/od-win32/hardfile_win32.cpp @@ -1462,7 +1462,7 @@ static int gethdfchs(HWND hDlg, struct uae_driveinfo *udi, HANDLE h, int *cylsp, err = -13; goto end; } - if (secs >= 256 || heads >= 16 || cyls > 2048) { + if (secs >= 256 || heads > 16 || cyls > 2048) { err = -14; goto end; } -- 2.47.3