diff options
author | vng <viktor.govako@gmail.com> | 2012-10-12 00:08:31 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:45:11 +0300 |
commit | 0d7ab1801d6f8e0aa7d277568b20e8adb4d6073c (patch) | |
tree | 58a882f14f731c1a23982bdb4273a0f64127c132 /coding | |
parent | 7ce5a1282179d15f50396dd639645736a71d7f68 (diff) |
Minor changes.
Diffstat (limited to 'coding')
-rw-r--r-- | coding/internal/file_data.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coding/internal/file_data.cpp b/coding/internal/file_data.cpp index d86113bca2..1e19f26644 100644 --- a/coding/internal/file_data.cpp +++ b/coding/internal/file_data.cpp @@ -242,8 +242,9 @@ bool CopyFile(string const & fOld, string const & fNew) if (ifs.is_open() && ofs.is_open()) { ofs << ifs.rdbuf(); + ofs.flush(); - if (ofs.bad() || ofs.fail()) + if (ofs.fail()) { // Well, specification says that exception is thrown for critical errors. // So just log stream fail state and continue. |