(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
This commit is contained in:
parent
a0f4465045
commit
0694ff1acb
@ -1561,8 +1561,8 @@ dispatch:
|
|||||||
{
|
{
|
||||||
long lrc;
|
long lrc;
|
||||||
|
|
||||||
if (lr.AL != 0 ||
|
/* high nibble must be <= 1, low nibble must be <= 2 */
|
||||||
(lr.DL & 0x0f) > 0x2 || (lr.DL & 0xf0) > 0x10)
|
if ((lr.DL & 0xef) > 0x2)
|
||||||
goto error_invalid;
|
goto error_invalid;
|
||||||
lrc = DosOpen(MK_FP(lr.DS, lr.SI),
|
lrc = DosOpen(MK_FP(lr.DS, lr.SI),
|
||||||
(lr.BX & 0x70ff) | ((lr.DL & 3) << 8) |
|
(lr.BX & 0x70ff) | ((lr.DL & 3) << 8) |
|
||||||
|
Loading…
Reference in New Issue
Block a user