1
0
Fork 0

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:
Sjoerd van der Berg 2002-07-30 12:51:26 +00:00
parent 1757db3891
commit 9f301d2d63

View file

@ -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;