Hi!

______________O\_/_________________________________\_/O______________
 COUNT DosDevIOctl(lregs * r)
[...]
       switch (r->AL)
       {
         case 0x00:
           /* Get the flags from the SFT                           */
+          r->AX = flags;
           if (flags & SFT_FDEVICE)
+            r->AH = attr >> 8; /* = hibyte (attr) */
-            r->AX = (attr & 0xff00) | (flags & 0xff);
-         else
-           r->AX = flags;
[...]
         IoCharCommon:
           if ((flags & SFT_FDEVICE) &&
-              (  ((r->AL == 0x02 || r->AL == 0x03) && (attr & ATTR_IOCTL))
+              (  (((r->AL & ~1) == 0x02) && (attr & ATTR_IOCTL))
-              ||   r->AL == 0x06 || r->AL == 0x07
+              ||   (r->AL & ~1) == 0x06 /* AL == 6 or 7 */
[...]
-            if (r->AL == 0x06 || r->AL == 0x07)
+            if ((r->AL & ~1) == 0x06) /* AL == 6 or 7 */
_____________________________________________________________________
              O/~\                                 /~\O




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to