From 5d874b4efb49661e9c1d71e0c96b0828ddb4abba Mon Sep 17 00:00:00 2001 From: Ulf Wohlers Date: Tue, 19 Nov 2002 20:33:23 +0000 Subject: [PATCH] fcbs will now be created in execute. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@534 --- src/shell/shell_misc.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/shell/shell_misc.cpp b/src/shell/shell_misc.cpp index f245e7bc..6328a642 100644 --- a/src/shell/shell_misc.cpp +++ b/src/shell/shell_misc.cpp @@ -164,6 +164,12 @@ void DOS_Shell::Execute(char * name,char * args) { cmd.buffer[strlen(line)]=0xd; /* Copy command line in stack block too */ MEM_BlockWrite(SegPhys(ss)+reg_sp+0x100,&cmd,128); + /* Parse FCB (first two parameters) and put them into the current DOS_PSP */ + Bit8u add; + FCB_Parsename(dos.psp,0x5C,0x00,cmd.buffer,&add); + FCB_Parsename(dos.psp,0x6C,0x00,&cmd.buffer[add],&add); + block.exec.fcb1=RealMake(dos.psp,0x5C); + block.exec.fcb2=RealMake(dos.psp,0x6C); /* Set the command line in the block and save it */ block.exec.cmdtail=RealMakeSeg(ss,reg_sp+0x100); block.SaveData();