/* Open a file and copy its content to a buffer.  */
uint32_t Storage_CheckBitmapFile(const char *BmpName, uint32_t *FileLen)
/* Open a file and copy its content to a buffer.  */
uint32_t Storage_CheckBitmapFile(const char *BmpName, uint32_t *FileLen)
{
  if(f_mount(&fs, (TCHAR const*)"",0))
  {
    return 1;
  }
  if (f_open (&F, BmpName, FA_READ))
  {
    return 2;
  }
  f_read (&F, sector, 6, (UINT *)&BytesRead);
  if (Buffercmp((uint8_t *)SlidesCheck, (uint8_t *) sector, 2) != 0)
  {
    return 3;
  }
  return 0;
}