Skip to content

Commit a946711

Browse files
authored
improve comment
1 parent 157773c commit a946711

File tree

1 file changed

+7
-5
lines changed
  • boot/freeldr/freeldr/lib/fs

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)