/* Opens a file and copies its content to a buffer.  */
uint32_t Storage_CheckBitmapFile(const char *BmpName, uint32_t *FileLen)
/* Opens a file and copies 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 (&MyFile, (TCHAR const*)BmpName, FA_READ))
  {
    return 2;
  }
  f_read (&MyFile, aBuffer, 6, (UINT *)&BytesRead);
  if (Buffercmp((uint8_t *)SlidesCheck, (uint8_t *) aBuffer, 2) != 0)
  {
    return 3;
  }
  return 0;
}