diff --git a/src/dos/dos_devices.cpp b/src/dos/dos_devices.cpp index b6659816..79d00eae 100644 --- a/src/dos/dos_devices.cpp +++ b/src/dos/dos_devices.cpp @@ -60,6 +60,10 @@ class device_LPT1 : public device_NUL { public: device_LPT1() { SetName("LPT1");} Bit16u GetInformation(void) { return 0x80A0; } + bool Read(Bit8u* data,Bit16u * size){ + DOS_SetError(DOSERR_ACCESS_DENIED); + return false; + } }; bool DOS_Device::Read(Bit8u * data,Bit16u * size) { diff --git a/src/shell/shell.cpp b/src/shell/shell.cpp index 9cce9285..7bbcd143 100644 --- a/src/shell/shell.cpp +++ b/src/shell/shell.cpp @@ -651,7 +651,7 @@ void SHELL_Init() { DOS_ForceDuplicateEntry(1,0); /* "new" STDIN */ DOS_ForceDuplicateEntry(1,2); /* STDERR */ DOS_OpenFile("CON",OPEN_READWRITE,&dummy); /* STDAUX */ - DOS_OpenFile("CON",OPEN_READWRITE,&dummy); /* STDPRN */ + DOS_OpenFile("PRN",OPEN_READWRITE,&dummy); /* STDPRN */ psp.SetParent(psp_seg); /* Set the environment */