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@474
This commit is contained in:
Ulf Wohlers 2002-11-04 13:31:59 +00:00
parent 664583a3c3
commit c18094c919

View file

@ -418,6 +418,9 @@ private:
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);
}