1
0
Fork 0

don't change type field when resizing dos memory just

before the last block that is marked allocated


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2376
This commit is contained in:
Sebastian Strohhäcker 2005-11-13 15:14:49 +00:00
parent 49579b425e
commit 07be3858f1

View file

@ -215,7 +215,7 @@ bool DOS_ResizeMemory(Bit16u segment,Bit16u * blocks) {
/* at this point: *blocks==total (fits) or *blocks>total,
in the second case resize block to maximum */
if (mcb.GetType()!=0x5a) {
if ((mcb_next.GetPSPSeg()==MCB_FREE) && (mcb.GetType()!=0x5a)) {
/* adjust type of joined MCB */
mcb.SetType(mcb_next.GetType());
}