From 9f301d2d6381403ad7486e7d9bc390c72eb226ef Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Tue, 30 Jul 2002 12:51:26 +0000 Subject: [PATCH] Setup environment for the shell correctly. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@103 --- src/shell/shell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shell/shell.cpp b/src/shell/shell.cpp index 63e4dadd..241e1a5a 100644 --- a/src/shell/shell.cpp +++ b/src/shell/shell.cpp @@ -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;