mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-13 22:06:46 +00:00
nyx: fatfs: add failsafes for wrong mkfs usage
This commit is contained in:
parent
af22085172
commit
369df25cd3
1 changed files with 12 additions and 0 deletions
|
@ -138,6 +138,18 @@ DRESULT disk_ioctl (
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else // Catch all for unknown devices.
|
||||||
|
{
|
||||||
|
switch (cmd)
|
||||||
|
{
|
||||||
|
case CTRL_SYNC:
|
||||||
|
break;
|
||||||
|
case GET_SECTOR_COUNT:
|
||||||
|
case GET_BLOCK_SIZE:
|
||||||
|
*buf = 0; // Zero value to force default or abort.
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return RES_OK;
|
return RES_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue