Skip to content

Commit

Permalink
cellMsgDialog: Fix segfault when closing non-blocking Qt dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
Megamouse committed Jun 9, 2023
1 parent fcfca6e commit 6aff280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpcs3/Emu/Cell/Modules/cellMsgDialog.cpp
Expand Up @@ -214,9 +214,9 @@ error_code open_msg_dialog(bool is_blocking, u32 type, vm::cptr<char> msgString,

dlg->type = _type;

dlg->on_close = [callback, userData, &return_code, wptr = std::weak_ptr<MsgDialogBase>(dlg)](s32 status)
dlg->on_close = [callback, userData, is_blocking, &return_code, wptr = std::weak_ptr<MsgDialogBase>(dlg)](s32 status)
{
if (return_code)
if (is_blocking && return_code)
{
*return_code = status;
}
Expand Down

0 comments on commit 6aff280

Please sign in to comment.