/* Get file type base on the file name. Just cut the file name, from the ".". eg ".efi" */
CHAR16* LibGetTypeFromName(IN CHAR16 *FileName)
/* Get file type base on the file name. Just cut the file name, from the ".". eg ".efi" */
CHAR16* LibGetTypeFromName(IN CHAR16 *FileName)
{
  UINTN  Index;
  Index = StrLen (FileName) - 1;
  while ((FileName[Index] != L'.') && (Index != 0)) {
    Index--;
  }
  return Index == 0 ? NULL : &FileName[Index];
}