]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Do not mount executable as a bootable disk image if it has disk image extension or...
authorToni Wilen <twilen@winuae.net>
Sun, 11 Oct 2020 17:16:03 +0000 (20:16 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 11 Oct 2020 17:16:03 +0000 (20:16 +0300)
disk.cpp

index 870707bb335521923e18a49d8c414e49a3ee9b6d..3b31b695318fac4301112958006e21b11d73a01f 100644 (file)
--- a/disk.cpp
+++ b/disk.cpp
@@ -1276,7 +1276,7 @@ static int drive_insert (drive * drv, struct uae_prefs *p, int dnum, const TCHAR
                        offs += tid->len;
                }
 
-       } else if (memcmp (exeheader, buffer, sizeof exeheader) == 0) {
+       } else if (memcmp (exeheader, buffer, sizeof exeheader) == 0 && size <= 512 * (1760 - 7) && !canauto) {
                int i;
                struct zfile *z = zfile_fopen_empty (NULL, _T(""), 512 * 1760);
                createimagefromexe (drv->diskfile, z);