File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
boot/freeldr/freeldr/lib/fs Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -525,15 +525,17 @@ static BOOLEAN NtfsCompareFileName(PCHAR FileName, PNTFS_INDEX_ENTRY IndexEntry)
525525 if (strlen (FileName ) != EntryFileNameLength )
526526 return FALSE;
527527
528- /* Always do case-insensitive compares for file names.
529- * Why is this necessary?
530- * Because when modifying an Windows ntfs partition formatted with Windows itself
531- * on Linux the ntldr/bootmgr will boot normally ignoring the case of the path
532- * so let's do the same .
528+ /*
529+ * Always perform case-insensitive comparison for file names.
530+ * This is necessary, because when modifying e.g. on Linux a Windows NTFS
531+ * partition formatted with Windows itself, the NTLDR/BOOTMGR will boot
532+ * normally ignoring the case of the paths .
533533 */
534534 for (i = 0 ; i < EntryFileNameLength ; i ++ )
535+ {
535536 if (tolower (EntryFileName [i ]) != tolower (FileName [i ]))
536537 return FALSE;
538+ }
537539
538540 return TRUE;
539541}
You can’t perform that action at this time.
0 commit comments