From 6a3be16d002e1a16f4362058d3cc295979f03b84 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Tue, 31 Dec 2002 13:33:38 +0000 Subject: [PATCH] Use new MCB class Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@618 --- src/shell/shell.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/shell/shell.cpp b/src/shell/shell.cpp index 7334fc5a..237a545f 100644 --- a/src/shell/shell.cpp +++ b/src/shell/shell.cpp @@ -249,9 +249,10 @@ void SHELL_Init() { SegSet16(ss,stack_seg); reg_sp=2046; /* Setup MCB and the environment */ - MCB * env_mcb=(MCB *)HostMake(env_seg-1,0); - env_mcb->psp_segment=psp_seg; - env_mcb->size=4096/16; + DOS_MCB envmcb((Bit16u)(env_seg-1)); + envmcb.SetPSPSeg(psp_seg); + envmcb.SetSize(4096/16); + PhysPt env_write=PhysMake(env_seg,0); MEM_BlockWrite(env_write,path_string,strlen(path_string)+1); env_write+=strlen(path_string)+1;