BUG: Fix call to SetFileTime to set it on the proper file.

This commit is contained in:
Brad King 2007-10-05 10:03:16 -04:00
parent 89dc3b0753
commit 23c6b90080

View File

@ -2049,7 +2049,7 @@ bool cmSystemTools::CopyFileTime(const char* fromFile, const char* toFile)
{ {
return false; return false;
} }
if(!SetFileTime(hFrom, &timeCreation, &timeLastAccess, &timeLastWrite)) if(!SetFileTime(hTo, &timeCreation, &timeLastAccess, &timeLastWrite))
{ {
return false; return false;
} }