(Rob Bearman) invoke CopyFile correctly.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9919 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2005-05-07 14:31:16 +00:00
parent 685af1c6d6
commit 1a6f0a2837
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-05-07 Rob Bearman <robbear@hyperfine.com>
* fs_extras.C (copy_file): noclobber and CopyFile's bFailIfExists
are the same as each other.
2005-05-03 Angus Leeming <leeming@lyx.org>
* filetools.C (RunCommand): protect calls to popen() and pclose()

View File

@ -155,7 +155,7 @@ void copy_file(path const & source, path const & target, bool noclobber)
fs::detail::system_error_code()));
#endif
#ifdef BOOST_WINDOWS
if (::CopyFile(source.string().c_str(), target.string().c_str(), !noclobber) == 0) {
if (::CopyFile(source.string().c_str(), target.string().c_str(), noclobber) == 0) {
boost::throw_exception(
filesystem_error(
"boost::filesystem::copy_file",