瀏覽代碼

* Fix windows implementation of find. Fixes issue #40473

Michaël Van Canneyt 1 年之前
父節點
當前提交
db1efd0264
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/fcl-pdf/src/fpttf.pp

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

@@ -1058,7 +1058,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]);