From: Toni Wilen Date: Sun, 18 Feb 2018 12:28:28 +0000 (+0200) Subject: Block max value limit. X-Git-Tag: 4000~174 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=a8b095a9cd1f1b784df16cb61b7329fe90cb62e1;p=francis%2Fwinuae.git Block max value limit. --- diff --git a/hardfile.cpp b/hardfile.cpp index b3cadafc..fc719ee9 100644 --- a/hardfile.cpp +++ b/hardfile.cpp @@ -1856,7 +1856,7 @@ int scsi_hd_emulate (struct hardfiledata *hfd, struct hd_hardfiledata *hdhfd, ua bdsize = 0; if (!dbd) { uae_u32 blocks = (uae_u32)(hfd->virtsize / hfd->ci.blocksize); - wl(p + 0, blocks < 0x01000000 ? blocks : 0); + wl(p + 0, blocks >= 0x00ffffff ? 0x00ffffff : blocks); wl(p + 4, hfd->ci.blocksize); bdsize = 8; p += bdsize;