Browse Source

* Attempt at fix for Bug ID #24068

git-svn-id: trunk@23920 -
michael 12 years ago
parent
commit
7d6717be86
1 changed files with 2 additions and 4 deletions
  1. 2 4
      packages/fcl-base/src/fileinfo.pp

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

@@ -243,11 +243,9 @@ end;
 procedure TFileVersionInfo.SetFileName (Const AFileName : string);
 begin
   FVersionStrings.clear;
-  if FileExists(AFileName) or (AFileName='') then
-    begin
-    FFileName := FFileName;
+  FFileName := AFileName;
+  if FileExists(FFileName) or (FFileName='') then
     CheckRead;
-    end;
 end;
 
 procedure TFileVersionInfo.SetEnabled(AValue: Boolean);