mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 05:28:56 +02:00
[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 <crueter@eden-emu.dev> 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 <dravee@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
This commit is contained in:
parent
00e2128fab
commit
0ff84ef312
1 changed files with 3 additions and 1 deletions
|
|
@ -99,7 +99,9 @@ try {
|
||||||
LOG_ERROR(Frontend, "Failed to get IPersistFile interface");
|
LOG_ERROR(Frontend, "Failed to get IPersistFile interface");
|
||||||
return false;
|
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)) {
|
if (FAILED(hres)) {
|
||||||
LOG_ERROR(Frontend, "Failed to save shortcut");
|
LOG_ERROR(Frontend, "Failed to save shortcut");
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue