1
0
Fork 0

DOS_CloseFile: dont close devices

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@653
This commit is contained in:
Ulf Wohlers 2003-01-28 21:18:20 +00:00
parent 6c2c23fd13
commit e9f1f898d7

View file

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