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:
parent
14ac0f241f
commit
ee0367653b
2 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue