mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-08 06:38:27 +03:00
...
This commit is contained in:
@@ -697,12 +697,12 @@ bool path_fs_copy_file(const wchar_t* src, const wchar_t* dst) {
|
||||
bool path_move_file(const char* old_path, const char* new_path) {
|
||||
wchar_t* old_path_temp = utf8_to_utf16(old_path);
|
||||
wchar_t* new_path_temp = utf8_to_utf16(new_path);
|
||||
bool ret = !_wrename(old_path_temp, new_path_temp);
|
||||
bool ret = MoveFileW(old_path_temp, new_path_temp);
|
||||
free_def(old_path_temp);
|
||||
free_def(new_path_temp);
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool path_move_file(const wchar_t* old_path, const wchar_t* new_path) {
|
||||
return !_wrename(old_path, new_path);
|
||||
return MoveFileW(old_path, new_path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user