From b8fb57e040d2db3feb728f150a18d76a9bc90004 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/lime_qt/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lime_qt/main.cpp b/src/lime_qt/main.cpp index 7c968d594..ed3da981c 100644 --- a/src/lime_qt/main.cpp +++ b/src/lime_qt/main.cpp @@ -1819,7 +1819,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;