This commit is contained in:
korenkonder
2024-07-16 01:46:27 +03:00
parent 6c557b4868
commit 3766cb480a
+2 -2
View File
@@ -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);
}