From 96c1ae0f1274bcba98afcaf1d06c6ded10218838 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 14 Nov 2021 09:31:43 -0800 Subject: [PATCH] Debugger: Fix crash on stepping/break. --- Windows/Debugger/Debugger_Disasm.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Windows/Debugger/Debugger_Disasm.cpp b/Windows/Debugger/Debugger_Disasm.cpp index 8e9c147e7e..63857ae6d2 100644 --- a/Windows/Debugger/Debugger_Disasm.cpp +++ b/Windows/Debugger/Debugger_Disasm.cpp @@ -236,7 +236,8 @@ void CDisasm::stepInto() ptr->gotoPC(); UpdateDialog(); - vfpudlg->Update(); + if (vfpudlg) + vfpudlg->Update(); CtrlMemView::getFrom(GetDlgItem(m_hDlg,IDC_DEBUGMEMVIEW))->redraw(); threadList->reloadThreads(); @@ -528,7 +529,8 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam) Sleep(1); //let cpu catch up ptr->gotoPC(); UpdateDialog(); - vfpudlg->Update(); + if (vfpudlg) + vfpudlg->Update(); } else { // go lastTicks = CoreTiming::GetTicks();