Merge topic 'update-kwsys'

168e44e2 Merge branch 'upstream-KWSys' into update-kwsys
731ad172 KWSys 2016-03-31 (3392da1d)
This commit is contained in:
Brad King 2016-04-01 10:01:52 -04:00 committed by CMake Topic Stage
commit e8c1363ee8
1 changed files with 3 additions and 2 deletions

View File

@ -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 ||