[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:
crueterandRedBlackAka committed 2026-02-25 14:53:49 +01:00
1 parent 00e2128fab
commit 0ff84ef312
1 file changed
+3 -1
+3 -1
View File
@@ -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;