Setup environment for the shell correctly.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@103
This commit is contained in:
parent
1757db3891
commit
9f301d2d63
1 changed files with 2 additions and 1 deletions
|
@ -158,8 +158,9 @@ void SHELL_Init() {
|
|||
psp->file_table=RealMake(psp_seg,offsetof(PSP,files));
|
||||
/* Save old DTA in psp */
|
||||
psp->dta=dos.dta;
|
||||
/* Set the environment and clear it */
|
||||
psp->environment=env_seg+1;
|
||||
|
||||
mem_writew(Real2Phys(RealMake(env_seg+1,0)),0);
|
||||
/* Setup internal DOS Variables */
|
||||
dos.dta=RealMake(psp_seg,0x80);
|
||||
dos.psp=psp_seg;
|
||||
|
|
Loading…
Add table
Reference in a new issue