소스 검색

* 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);