From cd92c62d3edfa6c1892adcded17a28d9567cb848 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Tue, 30 Apr 2019 19:36:04 +0300 Subject: [PATCH] HDF mount limit fix. --- filesys.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.47.3