From ae14aa991d49d84aee57a63f8b235a3dfcfb6886 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Mon, 27 Feb 2023 11:37:18 +0100 Subject: [PATCH] overlays: hotfix for return_code lifetime --- rpcs3/Emu/Cell/Modules/cellMsgDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellMsgDialog.cpp b/rpcs3/Emu/Cell/Modules/cellMsgDialog.cpp index b87fb4747a..6f644bb9b9 100644 --- a/rpcs3/Emu/Cell/Modules/cellMsgDialog.cpp +++ b/rpcs3/Emu/Cell/Modules/cellMsgDialog.cpp @@ -168,7 +168,7 @@ error_code open_msg_dialog(bool is_blocking, u32 type, vm::cptr msgString, const auto res = manager->create()->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; }