Skip to content

Commit fd7239c

Browse files
committed
Merge pull request #96258 from SaracenOne/win32_rename_fix
Fix Win32 rename function.
2 parents 526b35c + 6069cb3 commit fd7239c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/windows/dir_access_windows.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Error DirAccessWindows::rename(String p_path, String p_new_path) {
304304
}
305305
}
306306

307-
return MoveFileW((LPCWSTR)(path.utf16().get_data()), (LPCWSTR)(p_new_path.utf16().get_data())) != 0 ? OK : FAILED;
307+
return MoveFileW((LPCWSTR)(path.utf16().get_data()), (LPCWSTR)(new_path.utf16().get_data())) != 0 ? OK : FAILED;
308308
}
309309
}
310310

0 commit comments

Comments
 (0)