cellMsgDialogOpen2: Don't segfault when given a null pointer

This commit is contained in:
darkf 2014-12-16 02:20:54 -08:00
parent 1dbc0b448a
commit 8fa301ec05

View File

@ -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]()
{