1
0
mirror of https://github.com/CTCaer/hekate.git synced 2024-12-24 12:14:11 +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;
}
}
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;
}