From 133e9e37aebdafad7fd6a55687b18edafd9397d8 Mon Sep 17 00:00:00 2001 From: Bobby Smith <33353403+bslenul@users.noreply.github.com> Date: Fri, 23 Feb 2024 01:37:07 +0100 Subject: [PATCH] Crash fix for some games --- Core/Dialog/PSPMsgDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Dialog/PSPMsgDialog.cpp b/Core/Dialog/PSPMsgDialog.cpp index cb6bc99e4a1c..ba73d4007681 100755 --- a/Core/Dialog/PSPMsgDialog.cpp +++ b/Core/Dialog/PSPMsgDialog.cpp @@ -298,10 +298,10 @@ int PSPMsgDialog::Update(int animSpeed) { DisplayMessage(msgText, (flag & DS_YESNO) != 0, (flag & DS_OK) != 0); if (flag & (DS_OK | DS_VALIDBUTTON)) - DisplayButtons(DS_BUTTON_OK, messageDialog.common.size == SCE_UTILITY_MSGDIALOG_SIZE_V3 ? messageDialog.okayButton : NULL); + DisplayButtons(DS_BUTTON_OK, messageDialog.common.size == SCE_UTILITY_MSGDIALOG_SIZE_V3 ? messageDialog.okayButton : ""); if (flag & DS_CANCELBUTTON) - DisplayButtons(DS_BUTTON_CANCEL, messageDialog.common.size == SCE_UTILITY_MSGDIALOG_SIZE_V3 ? messageDialog.cancelButton : NULL); + DisplayButtons(DS_BUTTON_CANCEL, messageDialog.common.size == SCE_UTILITY_MSGDIALOG_SIZE_V3 ? messageDialog.cancelButton : ""); if (IsButtonPressed(cancelButtonFlag) && (flag & DS_CANCELBUTTON)) {