1
0
Fork 0

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:
Ulf Wohlers 2003-11-27 20:00:52 +00:00
parent 53008fb6ec
commit 96cbf4d6a2

View file

@ -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 */