1
0
Fork 0

mem ->63. List more options

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1956
This commit is contained in:
Peter Veenstra 2004-09-09 08:39:28 +00:00
parent 25ab0c147a
commit c15193d8f5
2 changed files with 9 additions and 8 deletions

View file

@ -479,9 +479,10 @@ void MEM_Init(Section * sec) {
Bitu memsize=section->Get_int("memsize");
if (memsize<1) memsize=1;
if (memsize>MAX_MEMORY) {
LOG_MSG("Maximum memory size is %d MB",MAX_MEMORY);
memsize=MAX_MEMORY;
/* max 63 to solve problems with certain xms handlers */
if (memsize>MAX_MEMORY - 1) {
LOG_MSG("Maximum memory size is %d MB",MAX_MEMORY - 1);
memsize=MAX_MEMORY - 1;
}
MemBase=(HostPt)malloc(memsize*1024*1024);
if (!MemBase) E_Exit("Can't allocate main memory of %d MB",memsize);