overlays: hotfix for return_code lifetime
This commit is contained in:
@@ -168,7 +168,7 @@ error_code open_msg_dialog(bool is_blocking, u32 type, vm::cptr<char> msgString,
|
|||||||
|
|
||||||
const auto res = manager->create<rsx::overlays::message_dialog>()->show(is_blocking, msgString.get_ptr(), _type, [callback, userData, &return_code, is_blocking, ¬ify](s32 status)
|
const auto res = manager->create<rsx::overlays::message_dialog>()->show(is_blocking, msgString.get_ptr(), _type, [callback, userData, &return_code, is_blocking, ¬ify](s32 status)
|
||||||
{
|
{
|
||||||
if (return_code)
|
if (is_blocking && return_code)
|
||||||
{
|
{
|
||||||
*return_code = status;
|
*return_code = status;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user