LCL: CopyFile: fixed setting file time on *nix (issue #11912)

git-svn-id: trunk@16111 -
This commit is contained in:
vincents 2008-08-18 10:40:34 +00:00
parent 145802bcea
commit 520a6b0648

View File

@ -1093,7 +1093,7 @@ begin
try
DestFS.CopyFrom(SrcFS,SrcFS.Size);
if PreserveTime then
FileSetDate(DestFS.Handle, FileGetDate(SrcFS.Handle));
FileSetDate(DestFilename, FileGetDate(SrcFS.Handle));
finally
DestFS.Free;
end;