1
0
Fork 0

stdprn is now really prn and you can't read from it. Fixes a weird runtime that reads the PRN handle.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3858
This commit is contained in:
Peter Veenstra 2014-01-12 13:43:47 +00:00
parent 14ac0f241f
commit ee0367653b
2 changed files with 5 additions and 1 deletions

View file

@ -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) {

View file

@ -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 */