main.cpp: Fixed compilation failure on MSYS2

This commit is contained in:
OpenSauce04 2024-08-14 11:35:30 +01:00
parent a3a6aed9be
commit d8643b2f75

View File

@ -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;