浏览代码

* 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);
     Inc(I);
     end;
     end;
   // This will read the info.
   // This will read the info.
-  FVersionInfo.FixedInfo;
+  if assigned(FVersionInfo) then
+    FVersionInfo.FixedInfo;
 end;
 end;
 
 
 procedure TVersionInfo.Load(Const Instance: THandle);
 procedure TVersionInfo.Load(Const Instance: THandle);