/* Search the long name hash table for the directory entry. */
FAT_DIRENT** FatLongNameHashSearch(IN FAT_ODIR *ODir, IN CHAR16 *LongNameString)
/* Search the long name hash table for the directory entry. */
FAT_DIRENT** FatLongNameHashSearch(IN FAT_ODIR *ODir, IN CHAR16 *LongNameString)
{
  FAT_DIRENT  **PreviousHashNode;
  for (PreviousHashNode   = &ODir->LongNameHashTable[FatHashLongName (LongNameString)];
       *PreviousHashNode != NULL;
       PreviousHashNode   = &(*PreviousHashNode)->LongNameForwardLink
       )
  {
    if (FatStriCmp (LongNameString, (*PreviousHashNode)->FileString) == 0) {
      break;
    }
  }
  return PreviousHashNode;
}