From ddeae950d5869039f417acc77b7eaa8242eb1fa9 Mon Sep 17 00:00:00 2001 From: RedBlackAka <140876408+RedBlackAka@users.noreply.github.com> Date: Tue, 24 Feb 2026 20:23:57 -0500 Subject: [PATCH] [desktop] Fix path corruption for special characters on Windows https://github.com/azahar-emu/azahar/pull/1745 Authored-by: RedBlackAka <140876408+RedBlackAka@users.noreply.github.com> Signed-off-by: crueter --- 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;