Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions kernel/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,24 @@ int DosDevIOctl(lregs * r)
}
else
{
if (r->AL != 9)
if (r->AL != 8 && r->AL != 9)
return DE_INVLDDRV;
dev = NULL;
attr = ATTR_REMOTE;
}

switch (r->AL)
{
case 0x08:
{
struct cds FAR *cdsp = get_cds1(r->BL & 0x1f);
if (cdsp == NULL)
return DE_INVLDDRV;
if (cdsp->cdsFlags & CDSNETWDRV)
return DE_INVLDFUNC;
r->AX = (dpbp->dpb_flags == M_DONT_KNOW);
return SUCCESS;
}
case 0x09:
{
/* note from get_dpb() */
Expand All @@ -213,7 +223,7 @@ int DosDevIOctl(lregs * r)
return SUCCESS;
}
/* fall through */
default: /* 0x04, 0x05, 0x08, 0x0e, 0x0f, 0x11 */
default: /* 0x04, 0x05, 0x0e, 0x0f, 0x11 */
break;
}
break;
Expand Down