mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 07:21:25 +12:00
cellMsgDialogOpen2: Don't segfault when given a null pointer
This commit is contained in:
parent
1dbc0b448a
commit
8fa301ec05
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ int cellMsgDialogOpen2(u32 type, vm::ptr<const char> msgString, vm::ptr<CellMsgD
|
||||||
default: g_msg_dialog_progress_bar_count = 0; break; // ???
|
default: g_msg_dialog_progress_bar_count = 0; break; // ???
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string msg = msgString.get_ptr();
|
std::string msg = (msgString.addr() != 0) ? msgString.get_ptr() : "";
|
||||||
|
|
||||||
thread t("MsgDialog thread", [type, msg, callback, userData, extParam]()
|
thread t("MsgDialog thread", [type, msg, callback, userData, extParam]()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue