mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-01 14:59:13 +00:00
[desktop] Fix path corruption for special characters on Windows (#3635)
https://github.com/azahar-emu/azahar/pull/1745 Authored-by: RedBlackAka <[email protected]> Signed-off-by: crueter <[email protected]> Co-authored-by: RedBlackAka <[email protected]> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3635 Reviewed-by: DraVee <[email protected]> Reviewed-by: MaranBr <[email protected]>
This commit is contained in:
1 file changed
+3
-1
@@ -99,7 +99,9 @@ try {
|
||||
LOG_ERROR(Frontend, "Failed to get IPersistFile interface");
|
||||
return false;
|
||||
}
|
||||
hres = persist_file->Save(std::filesystem::path{shortcut_path / (name + ".lnk")}.c_str(), TRUE);
|
||||
hres = persist_file->Save(
|
||||
std::filesystem::path{shortcut_path / (Common::UTF8ToUTF16W(name) + L".lnk")}.c_str(),
|
||||
TRUE);
|
||||
if (FAILED(hres)) {
|
||||
LOG_ERROR(Frontend, "Failed to save shortcut");
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user