From 0ff84ef312d44b7dc6e3a805dee6a00c03c1df7c Mon Sep 17 00:00:00 2001 From: crueter Date: Wed, 25 Feb 2026 14:53:49 +0100 Subject: [PATCH] [desktop] Fix path corruption for special characters on Windows (#3635) https://github.com/azahar-emu/azahar/pull/1745 Authored-by: RedBlackAka <140876408+RedBlackAka@users.noreply.github.com> Signed-off-by: crueter Co-authored-by: RedBlackAka <140876408+RedBlackAka@users.noreply.github.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3635 Reviewed-by: DraVee Reviewed-by: MaranBr --- src/qt_common/util/game.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qt_common/util/game.cpp b/src/qt_common/util/game.cpp index 91f43579f3..34fbd04ff9 100644 --- a/src/qt_common/util/game.cpp +++ b/src/qt_common/util/game.cpp @@ -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;