* lowercase extension before comparison

git-svn-id: trunk@37714 -
This commit is contained in:
marco 2017-12-11 19:51:24 +00:00
parent 04f0029b77
commit b41dafa618

View File

@ -1641,7 +1641,7 @@ begin
end;
if not Result then begin
AFileName := ExtractFilePath(FileName[0])+AFileName;
if FileExists(AFileName) and (ExtractFileExt(AFileName) = '.chm') then OpenNewFile(AFileName);
if FileExists(AFileName) and (LowerCase(ExtractFileExt(AFileName)) = '.chm') then OpenNewFile(AFileName);
Result := True;
end;
end;