瀏覽代碼

* Add assigned check to reading fileinfo for case there is no fileinfo section.
Mantis #26549, patch by Reinier.

git-svn-id: trunk@28304 -

marco 11 年之前
父節點
當前提交
6b01f96034
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      packages/fcl-base/src/fileinfo.pp

+ 2 - 1
packages/fcl-base/src/fileinfo.pp

@@ -194,7 +194,8 @@ begin
     Inc(I);
     end;
   // This will read the info.
-  FVersionInfo.FixedInfo;
+  if assigned(FVersionInfo) then
+    FVersionInfo.FixedInfo;
 end;
 
 procedure TVersionInfo.Load(Const Instance: THandle);