Browse Source

Tested on Windows 7.


git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@91 d34b734f-a00e-4b39-a726-e4eeb87269ab
adeniz_1
adeniz 9 years ago
parent
commit
b68b4410d5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      filesystem.cpp

+ 1
- 1
filesystem.cpp View File

@@ -49,7 +49,7 @@ namespace CodeDweller {
void FileOps::moveFile(std::string const &from, std::string const &to) {
#ifdef _WIN32
if (MoveFile(from.c_str(), to.c_str()) == 0) {
if (MoveFileEx(from.c_str(), to.c_str(), MOVEFILE_REPLACE_EXISTING) == 0) {
#else
if (rename(from.c_str(), to.c_str()) != 0) {
#endif

Loading…
Cancel
Save