Skip to content

Commit

Permalink
Merge pull request #96258 from SaracenOne/win32_rename_fix
Browse files Browse the repository at this point in the history
Fix Win32 rename function.
  • Loading branch information
akien-mga committed Aug 29, 2024
2 parents 526b35c + 6069cb3 commit fd7239c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/windows/dir_access_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit fd7239c

Please sign in to comment.