From 4f86bdfe26a7bd40a3e5b1fc1849a23dd914bb81 Mon Sep 17 00:00:00 2001 From: Ulf Wohlers Date: Mon, 4 Nov 2002 14:08:39 +0000 Subject: [PATCH] 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 --- include/dos_inc.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/dos_inc.h b/include/dos_inc.h index fbc98df4..6b99e6c0 100644 --- a/include/dos_inc.h +++ b/include/dos_inc.h @@ -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