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:
parent
e90de61263
commit
ad88f982c0
4 changed files with 52 additions and 31 deletions
|
@ -27,7 +27,7 @@
|
|||
#include "../dos/drives.h"
|
||||
#include "mapper.h"
|
||||
|
||||
#define MAX_DISK_IMAGES 4
|
||||
|
||||
|
||||
diskGeo DiskGeometryList[] = {
|
||||
{ 160, 8, 1, 40, 0},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue