From 0694ff1acbeada95bcd8e5e75a77e3f85f78f5af Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Thu, 30 Oct 2003 13:42:29 +0000 Subject: [PATCH] (from Lucho) Remove AL=0 check for AH=6c (from Arkady) Optimize DL check. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@723 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/inthndlr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/inthndlr.c b/kernel/inthndlr.c index 9aca604..a4db4c6 100644 --- a/kernel/inthndlr.c +++ b/kernel/inthndlr.c @@ -1561,8 +1561,8 @@ dispatch: { long lrc; - if (lr.AL != 0 || - (lr.DL & 0x0f) > 0x2 || (lr.DL & 0xf0) > 0x10) + /* high nibble must be <= 1, low nibble must be <= 2 */ + if ((lr.DL & 0xef) > 0x2) goto error_invalid; lrc = DosOpen(MK_FP(lr.DS, lr.SI), (lr.BX & 0x70ff) | ((lr.DL & 3) << 8) |