Permalink
Browse files

Mantis 0006055: GetFileLastWrite calls GetFileInformation two times

  • Loading branch information...
1 parent bf58bdc commit d7f844c45a2a90b08858145d52e32331e0fbbe53 @jfudickar jfudickar committed Jun 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 jcl/source/common/JclFileUtils.pas
@@ -4117,7 +4117,7 @@ function GetFileLastWrite(const FileName: string; out LocalTime: TDateTime): Boo
begin
Result := GetFileInformation(FileName, FileInfo);
if Result then
- LocalTime := FileTimeToLocalDateTime(GetFileInformation(FileName).FindData.ftLastWriteTime);
+ LocalTime := FileTimeToLocalDateTime(FileInfo.FindData.ftLastWriteTime);
end;
{$ENDIF MSWINDOWS}

0 comments on commit d7f844c

Please sign in to comment.