1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-22 18:06:40 +00:00

nyx: fatfs: add failsafes for wrong mkfs usage

This commit is contained in:
CTCaer 2022-05-19 15:17:54 +03:00
parent af22085172
commit 369df25cd3

View file

@ -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;
} }