1
0
Fork 0

Fixed bug in RealHandle. it lost the highbyte of the file handle, which may lead to wrong file access.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@475
This commit is contained in:
Ulf Wohlers 2002-11-04 14:08:39 +00:00
parent c18094c919
commit 4f86bdfe26

View file

@ -419,10 +419,8 @@ extern DOS_InfoBlock dos_infoblock;;
INLINE Bit8u RealHandle(Bit16u handle) {
// test out of range
if (handle>0xFF) return 0xff;
DOS_PSP psp(dos.psp);
return psp.GetFileHandle((Bit8u)handle);
return psp.GetFileHandle(handle);
}
#endif