From d8643b2f7560d96196e752a3ea0932c4c2f43dcd Mon Sep 17 00:00:00 2001 From: OpenSauce04 Date: Wed, 14 Aug 2024 11:35:30 +0100 Subject: [PATCH] main.cpp: Fixed compilation failure on MSYS2 --- src/citra_qt/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index cdd4040e8..05de55a76 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -1754,7 +1754,7 @@ bool GMainWindow::CreateShortcutLink(const std::filesystem::path& shortcut_path, LOG_ERROR(Frontend, "Failed to create IShellLinkW instance"); return false; } - hres = ps1->SetPath(command.c_str()); + hres = ps1->SetPath(Common::UTF8ToUTF16W(command).data()); if (FAILED(hres)) { LOG_ERROR(Frontend, "Failed to set path"); return false;