mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-21 11:29:33 +01:00
IDE: fixed comparing file names case insensitive
git-svn-id: trunk@37753 -
This commit is contained in:
parent
7185755781
commit
72a324323b
@ -371,7 +371,7 @@ begin
|
||||
// check if special file
|
||||
if (FileInfo.Name='.') or (FileInfo.Name='..') or (FileInfo.Name='') then
|
||||
continue;
|
||||
if (AnsiCompareText(CaseInsensitiveFilename,FileInfo.Name)=0)
|
||||
if (CompareFilenamesIgnoreCase(CaseInsensitiveFilename,FileInfo.Name)=0)
|
||||
and ((not IgnoreExact)
|
||||
or (CompareFilenames(CaseInsensitiveFilename,FileInfo.Name)<>0))
|
||||
then begin
|
||||
|
||||
@ -5544,7 +5544,7 @@ var
|
||||
if siffCaseSensitive in SearchFlags then
|
||||
Result:=SearchedFilename=AFilename
|
||||
else
|
||||
Result:=AnsiCompareText(SearchedFilename,AFilename)=0;
|
||||
Result:=CompareFilenamesIgnoreCase(SearchedFilename,AFilename)=0;
|
||||
end;
|
||||
|
||||
begin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user