Browse Source

* use fileage for retrieving file timestamps

git-svn-id: trunk@5110 -
peter 19 years ago
parent
commit
5c96c98aa2
1 changed files with 1 additions and 6 deletions
  1. 1 6
      compiler/comphook.pas

+ 1 - 6
compiler/comphook.pas

@@ -379,13 +379,8 @@ end;
 
 
 Function def_GetNamedFileTime (Const F : String) : Longint;
-var
-  fh : THandle;
 begin
-  Result := -1;
-  fh := FileOpen(f, faArchive+faReadOnly+faHidden);
-  Result := FileGetDate(fh);
-  FileClose(fh);
+  Result:=FileAge(F);
 end;
 
 end.