Merge pull request #96258 from SaracenOne/win32_rename_fix

Fix Win32 rename function.
This commit is contained in:
Rémi Verschelde 2024-08-29 10:36:53 +02:00
commit fd7239cfab
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -304,7 +304,7 @@ Error DirAccessWindows::rename(String p_path, String p_new_path) {
}
}
return MoveFileW((LPCWSTR)(path.utf16().get_data()), (LPCWSTR)(p_new_path.utf16().get_data())) != 0 ? OK : FAILED;
return MoveFileW((LPCWSTR)(path.utf16().get_data()), (LPCWSTR)(new_path.utf16().get_data())) != 0 ? OK : FAILED;
}
}