Sfoglia il codice sorgente

* use fileage for retrieving file timestamps

git-svn-id: trunk@5110 -
peter 19 anni fa
parent
commit
5c96c98aa2
1 ha cambiato i file con 1 aggiunte e 6 eliminazioni
  1. 1 6
      compiler/comphook.pas

+ 1 - 6
compiler/comphook.pas

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