From: Toni Wilen Date: Tue, 30 Apr 2019 16:36:04 +0000 (+0300) Subject: HDF mount limit fix. X-Git-Tag: 4300~226 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=cd92c62d3edfa6c1892adcded17a28d9567cb848;p=francis%2Fwinuae.git HDF mount limit fix. --- diff --git a/filesys.cpp b/filesys.cpp index aeaf4aa9..32e478c3 100644 --- a/filesys.cpp +++ b/filesys.cpp @@ -8754,6 +8754,8 @@ static uae_u32 REGPARAM2 filesys_dev_storeinfo (TrapContext *ctx) if (unit_no >= MAX_FILESYSTEM_UNITS) return -2; + if (sub_no >= MAX_FILESYSTEM_UNITS) + return -2; UnitInfo *uip = mountinfo.ui; uaecptr parmpacket = trap_get_areg(ctx, 0);