1
0
Fork 0

Add some size checks when accessing Drives[], mostly needed when DOS_DRIVES is not set to 26, make size parsing not go outside the target array.

Let's not try to assign a drive in the switchlist to a too high number.
Don't access imagelist for drives >D when unmounting. 


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4239
This commit is contained in:
Peter Veenstra 2019-06-25 06:12:13 +00:00
parent e90de61263
commit ad88f982c0
4 changed files with 52 additions and 31 deletions

View file

@ -27,7 +27,7 @@
#include "../dos/drives.h"
#include "mapper.h"
#define MAX_DISK_IMAGES 4
diskGeo DiskGeometryList[] = {
{ 160, 8, 1, 40, 0},