childpsp gets environment block from parent psp
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1469
This commit is contained in:
parent
53008fb6ec
commit
96cbf4d6a2
1 changed files with 2 additions and 0 deletions
|
@ -185,9 +185,11 @@ bool DOS_ChildPSP(Bit16u segment, Bit16u size)
|
|||
psp.MakeNew(size);
|
||||
DOS_PSP psp_parent(psp.GetParent());
|
||||
psp.CopyFileTable(&psp_parent,true);
|
||||
psp.SetEnvironment(psp_parent.GetEnvironment());
|
||||
psp.SetSize(size);
|
||||
return true;
|
||||
};
|
||||
|
||||
static void SetupPSP(Bit16u pspseg,Bit16u memsize,Bit16u envseg) {
|
||||
|
||||
/* Fix the PSP for psp and environment MCB's */
|
||||
|
|
Loading…
Add table
Reference in a new issue