Browse Source

* Fix windows implementation of find. Fixes issue #40473

(cherry picked from commit db1efd026472270cb1d6ca7101387d16a916eea4)
Michaël Van Canneyt 1 year ago
parent
commit
a1fa607add
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-pdf/src/fpttf.pp

+ 1 - 1
packages/fcl-pdf/src/fpttf.pp

@@ -1070,7 +1070,7 @@ begin
       end;
       end;
     if enum.matches.Count>0 then // there are matches
     if enum.matches.Count>0 then // there are matches
       begin
       begin
-      fpath:=GetWinFontsDir;
+      fpath:=IncludeTrailingPathDelimiter(GetWinFontsDir);
       for i:=enum.matches.Count-1 downto 0 do
       for i:=enum.matches.Count-1 downto 0 do
         begin
         begin
         FI:=TFontItem(enum.matches[i]);
         FI:=TFontItem(enum.matches[i]);