summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-04-14 16:44:01 (GMT)
committerBrad King <brad.king@kitware.com>2008-04-14 16:44:01 (GMT)
commit9b8404a30516b629ad9ebc7322d58b18ce034858 (patch)
treed8f84b6fa9067867c55be120a3d0425720d22a6f /Source/cmSystemTools.cxx
parent703b8c822592d51d449930e1280c2a3dc92698e9 (diff)
downloadCMake-9b8404a30516b629ad9ebc7322d58b18ce034858.zip
CMake-9b8404a30516b629ad9ebc7322d58b18ce034858.tar.gz
CMake-9b8404a30516b629ad9ebc7322d58b18ce034858.tar.bz2
COMP: Fix new cmSystemTools file time methods on Windows.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 68ebb4f..4773755 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -2165,7 +2165,7 @@ bool cmSystemTools::FileTimeSet(const char* fname, cmSystemToolsFileTime* t)
{
#if defined(_WIN32) && !defined(__CYGWIN__)
cmSystemToolsWindowsHandle h =
- CreateFile(toFile, GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0);
+ CreateFile(fname, GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0);
if(!h)
{
return false;