mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 17:47:26 +01:00
codetools: fixed FilenameIsMatching on Windows
This commit is contained in:
parent
478b6dcf4b
commit
f03d205c06
@ -1383,10 +1383,14 @@ function FilenameIsMatching(const Mask, Filename: string;
|
||||
case MaskP^ of
|
||||
#0,SpecialChar,PathDelim,'?','*','{',',','}': break;
|
||||
'a'..'z','A'..'Z':
|
||||
{$IFDEF CaseInsensitiveFilenames}
|
||||
if FPUpChars[MaskP^]<>FPUpChars[FileP^] then exit;
|
||||
{$ELSE}
|
||||
if AnyCase then begin
|
||||
if FPUpChars[MaskP^]<>FPUpChars[FileP^] then exit;
|
||||
end else
|
||||
if MaskP^<>FileP^ then exit;
|
||||
{$ENDIF}
|
||||
else
|
||||
if MaskP^<>FileP^ then exit;
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user