mirror of https://github.com/BOINC/boinc.git
parent
d48e377e8a
commit
2aacdfaa60
|
@ -568,7 +568,7 @@ int boinc_copy(const char* orig, const char* newf) {
|
|||
|
||||
static int boinc_rename_aux(const char* old, const char* newf) {
|
||||
#ifdef _WIN32
|
||||
if (MoveFileEx(old, newf, MOVEFILE_REPLACE_EXISTING|MOVEFILE_WRITE_THROUGH)) return 0;
|
||||
if (MoveFileExA(old, newf, MOVEFILE_REPLACE_EXISTING|MOVEFILE_WRITE_THROUGH)) return 0;
|
||||
return GetLastError();
|
||||
#else
|
||||
int retval = rename(old, newf);
|
||||
|
|
Loading…
Reference in New Issue