/* Determines if a sector is within the first FAT.  */
static bool IsFATSector(uint32_t drive, uint32_t sector)
/* Determines if a sector is within the first FAT.  */
static bool IsFATSector(uint32_t drive, uint32_t sector)
{
    uint32_t start = MediaTable[drive].RsvdSectors + g_u32MbrStartSector;
    uint32_t end = start + MediaTable[drive].FATSize;
    return (sector >= start) && (sector < end);
}