mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-28 09:23:34 +00:00
cellMsgDialogOpen2: Don't segfault when given a null pointer
This commit is contained in:
parent
1dbc0b448a
commit
8fa301ec05
@ -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; // ???
|
||||
}
|
||||
|
||||
std::string msg = msgString.get_ptr();
|
||||
std::string msg = (msgString.addr() != 0) ? msgString.get_ptr() : "";
|
||||
|
||||
thread t("MsgDialog thread", [type, msg, callback, userData, extParam]()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user