Sfoglia il codice sorgente

properly handle resource files with spaces in their path

git-svn-id: branches/resources@10507 -
giulio 17 anni fa
parent
commit
5af2fdb049
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      compiler/comprsrc.pas

+ 1 - 1
compiler/comprsrc.pas

@@ -338,7 +338,7 @@ procedure TWinLikeResourceFile.Collect(const fn: ansistring);
 begin
   if fResScript=nil then
     fResScript:=TScript.Create(fScriptName);
-  fResScript.Add(fn);
+  fResScript.Add(MaybeQuoted(fn));
   inc(fCollectCount);
 end;