Fix auto updates. Don't pass exe as arg0 to execl

This commit is contained in:
Megamouse 2021-03-06 16:40:56 +01:00 committed by Ivan
parent 3609eb25c9
commit 9da7910fc9
2 changed files with 16 additions and 16 deletions

View file

@ -546,9 +546,9 @@ bool update_manager::handle_rpcs3(const QByteArray& data)
QMessageBox::information(m_parent, tr("Auto-updater"), tr("Update successful!\nRPCS3 will now restart."));
#ifdef _WIN32
const int ret = _wexecl(wchar_orig_path.data(), wchar_orig_path.data(), L"--updating", nullptr);
const int ret = _wexecl(wchar_orig_path.data(), L"--updating", nullptr);
#else
const int ret = execl(replace_path.c_str(), replace_path.c_str(), "--updating", nullptr);
const int ret = execl(replace_path.c_str(), "--updating", nullptr);
#endif
if (ret == -1)
{