Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
b68b4410d5
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      filesystem.cpp

+ 1
- 1
filesystem.cpp Näytä tiedosto

@@ -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…
Peruuta
Tallenna