diff --git a/kernel/ioctl.c b/kernel/ioctl.c index bb9a753..4070eff 100644 --- a/kernel/ioctl.c +++ b/kernel/ioctl.c @@ -229,7 +229,10 @@ COUNT DosDevIOctl(lregs * r) dpbp = get_dpb(CharReqHdr.r_unit); if (dpbp) + { attr = dpbp->dpb_device->dh_attr; + CharReqHdr.r_unit = dpbp->dpb_subunit; + } else if (r->AL != 9) return DE_INVLDDRV;