]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
HDF mount limit fix.
authorToni Wilen <twilen@winuae.net>
Tue, 30 Apr 2019 16:36:04 +0000 (19:36 +0300)
committerToni Wilen <twilen@winuae.net>
Tue, 30 Apr 2019 16:36:04 +0000 (19:36 +0300)
filesys.cpp

index aeaf4aa9d2763321c2ec200370e4de97dc092623..32e478c3fd4f8c4eec2bd302515be17f59f7ace8 100644 (file)
@@ -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);