From db4abcd0c503c359296eb455e0dd421cb40bbd27 Mon Sep 17 00:00:00 2001 From: The Dax Date: Thu, 2 Jan 2014 14:55:09 -0500 Subject: [PATCH] Don't crash when the virtual PSP isn't inited. --- Windows/Debugger/Debugger_Disasm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Windows/Debugger/Debugger_Disasm.cpp b/Windows/Debugger/Debugger_Disasm.cpp index f40cc9b57..0d077ff6a 100644 --- a/Windows/Debugger/Debugger_Disasm.cpp +++ b/Windows/Debugger/Debugger_Disasm.cpp @@ -813,7 +813,8 @@ void CDisasm::UpdateDialog(bool _bComplete) rl->redraw(); // Update Debug Counter wchar_t tempTicks[24]; - _snwprintf(tempTicks, 24, L"%lld", CoreTiming::GetTicks()-lastTicks); + if (PSP_IsInited()) + _snwprintf(tempTicks, 24, L"%lld", CoreTiming::GetTicks()-lastTicks); SetDlgItemText(m_hDlg, IDC_DEBUG_COUNT, tempTicks); // Update Register Dialog