mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
(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:
parent
685af1c6d6
commit
1a6f0a2837
@ -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()
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user