summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-04-01 14:01:52 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-04-01 14:01:52 (GMT)
commite8c1363ee8f08cf0b36e17f85ddb461abd06e0b6 (patch)
tree327146431cb62c74dbe1deeecf5faf2776a5fbc1
parent9e33f02bd9ac9e35256b371df936ab67e615601a (diff)
parent168e44e2028d905272323e0a66e3735c30460f5a (diff)
downloadCMake-e8c1363ee8f08cf0b36e17f85ddb461abd06e0b6.zip
CMake-e8c1363ee8f08cf0b36e17f85ddb461abd06e0b6.tar.gz
CMake-e8c1363ee8f08cf0b36e17f85ddb461abd06e0b6.tar.bz2
Merge topic 'update-kwsys'
168e44e2 Merge branch 'upstream-KWSys' into update-kwsys 731ad172 KWSys 2016-03-31 (3392da1d)
-rw-r--r--Source/kwsys/SystemTools.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 0c7f419..c6e668d 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -2855,6 +2855,7 @@ static bool DeleteJunction(const std::wstring& source)
return false;
#endif
}
+
#endif
bool SystemTools::RemoveFile(const std::string& source)
@@ -2884,9 +2885,9 @@ bool SystemTools::RemoveFile(const std::string& source)
SetLastError(err);
return false;
}
- if (IsJunction(ws) && !DeleteJunction(ws))
+ if (IsJunction(ws) && DeleteJunction(ws))
{
- return false;
+ return true;
}
if (DeleteFileW(ws.c_str()) ||
GetLastError() == ERROR_FILE_NOT_FOUND ||