bugfix: if you can't allocate the EMS system handle, then don't enable

VCPI, the handle memory location is invalid. This fixes memory
corruption within realmode segment 0x1E8-0x507 when memsize=1.
This commit is contained in:
Jonathan Campbell
2015-03-23 06:41:37 -07:00
parent ec95072f3f
commit ad5f9e456f
2 changed files with 5 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ static void DOS_Mem_E_Exit(const char *msg) {
E_Exit(msg);
}
static void DOS_CompressMemory(Bit16u first_segment=0/*default*/) {
void DOS_CompressMemory(Bit16u first_segment=0/*default*/) {
Bit16u mcb_segment=dos.firstMCB;
DOS_MCB mcb(mcb_segment);
DOS_MCB mcb_next(0);