DOS_CloseFile: dont close devices
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@653
This commit is contained in:
parent
6c2c23fd13
commit
e9f1f898d7
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ bool DOS_CloseFile(Bit16u entry) {
|
|||
//TODO Figure this out with devices :)
|
||||
|
||||
DOS_PSP psp(dos.psp);
|
||||
psp.SetFileHandle(entry,0xff);
|
||||
if (entry>STDPRN) psp.SetFileHandle(entry,0xff);
|
||||
|
||||
/* Devices won't allow themselves to be closed or killed */
|
||||
if (Files[handle]->Close()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue