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:
parent
c18094c919
commit
4f86bdfe26
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue