소스 검색

* use fileage for retrieving file timestamps

git-svn-id: trunk@5110 -
peter 19 년 전
부모
커밋
5c96c98aa2
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  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.