From 1a6f0a28379aa2761ec51d91edfbe6ca0452ba0d Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Sat, 7 May 2005 14:31:16 +0000 Subject: [PATCH] (Rob Bearman) invoke CopyFile correctly. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9919 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/ChangeLog | 5 +++++ src/support/fs_extras.C | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/support/ChangeLog b/src/support/ChangeLog index e12c034643..1da159332e 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,8 @@ +2005-05-07 Rob Bearman + + * fs_extras.C (copy_file): noclobber and CopyFile's bFailIfExists + are the same as each other. + 2005-05-03 Angus Leeming * filetools.C (RunCommand): protect calls to popen() and pclose() diff --git a/src/support/fs_extras.C b/src/support/fs_extras.C index ceb2a28f29..23f794761d 100644 --- a/src/support/fs_extras.C +++ b/src/support/fs_extras.C @@ -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", -- 2.39.5