Skip to content

Commit

Permalink
Fix Win32 rename function.
Browse files Browse the repository at this point in the history
  • Loading branch information
SaracenOne committed Aug 29, 2024
1 parent e439154 commit 6069cb3
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 6069cb3

Please sign in to comment.