Skip to content

Commit df2c8d9

Browse files
committed
[HACK][FREELDR] Hack the ntfs library case sensitivity
1 parent 489a4bf commit df2c8d9

File tree

1 file changed

+3
-12
lines changed
  • boot/freeldr/freeldr/lib/fs

1 file changed

+3
-12
lines changed

boot/freeldr/freeldr/lib/fs/ntfs.c

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -526,18 +526,9 @@ static BOOLEAN NtfsCompareFileName(PCHAR FileName, PNTFS_INDEX_ENTRY IndexEntry)
526526
return FALSE;
527527

528528
/* Do case-sensitive compares for Posix file names. */
529-
if (IndexEntry->FileName.FileNameType == NTFS_FILE_NAME_POSIX)
530-
{
531-
for (i = 0; i < EntryFileNameLength; i++)
532-
if (EntryFileName[i] != FileName[i])
533-
return FALSE;
534-
}
535-
else
536-
{
537-
for (i = 0; i < EntryFileNameLength; i++)
538-
if (tolower(EntryFileName[i]) != tolower(FileName[i]))
539-
return FALSE;
540-
}
529+
for (i = 0; i < EntryFileNameLength; i++)
530+
if (tolower(EntryFileName[i]) != tolower(FileName[i]))
531+
return FALSE;
541532

542533
return TRUE;
543534
}

0 commit comments

Comments
 (0)