Have to move attr/flags init before switch, otherwise they won't work!
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@758 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
44e4319e93
commit
828a125aed
@ -79,16 +79,18 @@ COUNT DosDevIOctl(lregs * r)
|
|||||||
case 0x0a:
|
case 0x0a:
|
||||||
case 0x0c:
|
case 0x0c:
|
||||||
case 0x10:
|
case 0x10:
|
||||||
|
{
|
||||||
|
unsigned attr, flags;
|
||||||
|
|
||||||
/* Get the SFT block that contains the SFT */
|
/* Get the SFT block that contains the SFT */
|
||||||
if ((s = get_sft(r->BX)) == (sft FAR *) - 1)
|
if ((s = get_sft(r->BX)) == (sft FAR *) - 1)
|
||||||
return DE_INVLDHNDL;
|
return DE_INVLDHNDL;
|
||||||
|
|
||||||
|
attr = s->sft_dev->dh_attr;
|
||||||
|
flags = s->sft_flags;
|
||||||
|
|
||||||
switch (r->AL)
|
switch (r->AL)
|
||||||
{
|
{
|
||||||
unsigned attr = s->sft_dev->dh_attr;
|
|
||||||
unsigned flags = s->sft_flags;
|
|
||||||
|
|
||||||
case 0x00:
|
case 0x00:
|
||||||
/* Get the flags from the SFT */
|
/* Get the flags from the SFT */
|
||||||
if (flags & SFT_FDEVICE)
|
if (flags & SFT_FDEVICE)
|
||||||
@ -183,6 +185,7 @@ COUNT DosDevIOctl(lregs * r)
|
|||||||
return DE_INVLDFUNC;
|
return DE_INVLDFUNC;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case 0x04:
|
case 0x04:
|
||||||
case 0x05:
|
case 0x05:
|
||||||
|
Loading…
Reference in New Issue
Block a user