From b475db8f13237261643ba3016626bd0fe664c9f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Strohh=C3=A4cker?= Date: Mon, 10 Oct 2005 17:08:35 +0000 Subject: [PATCH] fill psp-field of mcb with current psp when resizing Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2345 --- src/dos/dos_memory.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dos/dos_memory.cpp b/src/dos/dos_memory.cpp index ae0a8cf1..0f97762d 100644 --- a/src/dos/dos_memory.cpp +++ b/src/dos/dos_memory.cpp @@ -188,6 +188,7 @@ bool DOS_ResizeMemory(Bit16u segment,Bit16u * blocks) { mcb_new_next.SetSize(total-*blocks-1); mcb_new_next.SetPSPSeg(MCB_FREE); + mcb.SetPSPSeg(dos.psp()); return true; } if (mcb.GetType()!=0x5a) { @@ -205,6 +206,7 @@ bool DOS_ResizeMemory(Bit16u segment,Bit16u * blocks) { mcb_next.SetType(mcb.GetType()); mcb_next.SetPSPSeg(MCB_FREE); mcb.SetType(0x4d); + mcb.SetPSPSeg(dos.psp()); return true; } if (*blocks==total) { @@ -212,6 +214,7 @@ bool DOS_ResizeMemory(Bit16u segment,Bit16u * blocks) { mcb.SetType(mcb_next.GetType()); } mcb.SetSize(*blocks); + mcb.SetPSPSeg(dos.psp()); return true; } *blocks=total;