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:
parent
49579b425e
commit
07be3858f1
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue