mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 12:00:40 +02:00
TFileSearcher.Search: use Windows specific file pattern matching on Windows.
Fixes issue #0024306 git-svn-id: trunk@40973 -
This commit is contained in:
parent
18ac0f9649
commit
5fcdbd6c7d
@ -1448,10 +1448,10 @@ var
|
||||
// Deal with both files and directories
|
||||
if (PathInfo.Attr and faDirectory) = 0 then
|
||||
begin // File
|
||||
if (MaskList = nil) or MaskList.Matches(PathInfo.Name)
|
||||
{$IFDEF Windows}
|
||||
// On Windows files without extension must be included for *.*
|
||||
or ((ASearchMask = '*.*') and (ExtractFileExt(PathInfo.Name) = ''))
|
||||
if (MaskList = nil) or MaskList.MatchesWindowsMask(PathInfo.Name)
|
||||
{$ELSE}
|
||||
if (MaskList = nil) or MaskList.Matches(PathInfo.Name)
|
||||
{$ENDIF}
|
||||
then begin
|
||||
FPath := APath;
|
||||
|
Loading…
Reference in New Issue
Block a user