mirror of
https://github.com/CTCaer/hekate.git
synced 2024-12-25 06:18:11 +00:00
nyx: fatfs: add failsafes for wrong mkfs usage
This commit is contained in:
parent
af22085172
commit
369df25cd3
@ -138,6 +138,18 @@ DRESULT disk_ioctl (
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user