IDE: fixed comparing file names case insensitive

git-svn-id: trunk@37753 -
This commit is contained in:
mattias 2012-06-24 06:48:35 +00:00
parent 7185755781
commit 72a324323b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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