diff options
author | Saracen <SaracenOne@gmail.com> | 2024-08-29 03:51:38 +0100 |
---|---|---|
committer | Saracen <SaracenOne@gmail.com> | 2024-08-29 03:54:02 +0100 |
commit | 6069cb34751aca7da6824fc73b4c1db1440c74bc (patch) | |
tree | 97f9bb493f284da82727086c500029e94e0d7ac3 /drivers/windows | |
parent | e439154407721b2e053c38decaa77cb520d22a12 (diff) | |
download | redot-engine-6069cb34751aca7da6824fc73b4c1db1440c74bc.tar.gz |
Fix Win32 rename function.
Diffstat (limited to 'drivers/windows')
-rw-r--r-- | drivers/windows/dir_access_windows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/windows/dir_access_windows.cpp b/drivers/windows/dir_access_windows.cpp index 1d1f2ce415..b8677fe404 100644 --- a/drivers/windows/dir_access_windows.cpp +++ b/drivers/windows/dir_access_windows.cpp @@ -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; } } |