From 3766cb480ae069c98bf45ea206ac29d1e84bc4f2 Mon Sep 17 00:00:00 2001 From: korenkonder Date: Tue, 16 Jul 2024 01:46:27 +0300 Subject: [PATCH] ... --- src/KKdLib/io/path.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/KKdLib/io/path.cpp b/src/KKdLib/io/path.cpp index 0438b4ad..6bee957d 100644 --- a/src/KKdLib/io/path.cpp +++ b/src/KKdLib/io/path.cpp @@ -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); }