mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
Fix auto updates. Don't pass exe as arg0 to execl
This commit is contained in:
parent
3609eb25c9
commit
9da7910fc9
2 changed files with 16 additions and 16 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue