mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 00:09:25 +02:00
* lowercase extension before comparison
git-svn-id: trunk@37714 -
This commit is contained in:
parent
04f0029b77
commit
b41dafa618
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user