main.cpp: Fixed compilation failure on MSYS2

This commit is contained in:
OpenSauce04 2024-08-14 11:35:30 +01:00 committed by OpenSauce
parent a573f0f036
commit b8fb57e040

View File

@ -1819,7 +1819,7 @@ bool GMainWindow::CreateShortcutLink(const std::filesystem::path& shortcut_path,
LOG_ERROR(Frontend, "Failed to create IShellLinkW instance"); LOG_ERROR(Frontend, "Failed to create IShellLinkW instance");
return false; return false;
} }
hres = ps1->SetPath(command.c_str()); hres = ps1->SetPath(Common::UTF8ToUTF16W(command).data());
if (FAILED(hres)) { if (FAILED(hres)) {
LOG_ERROR(Frontend, "Failed to set path"); LOG_ERROR(Frontend, "Failed to set path");
return false; return false;