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:
parent
664583a3c3
commit
c18094c919
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue