Merge pull request #4980 from thedax/debuggerCrashFix

Win32/Debugger: Don't crash when the virtual PSP isn't inited.
This commit is contained in:
Henrik Rydgård 2014-01-02 14:08:43 -08:00
commit 4982c6bd1e

View File

@ -813,9 +813,10 @@ void CDisasm::UpdateDialog(bool _bComplete)
rl->redraw();
// Update Debug Counter
wchar_t tempTicks[24];
_snwprintf(tempTicks, 24, L"%lld", CoreTiming::GetTicks()-lastTicks);
SetDlgItemText(m_hDlg, IDC_DEBUG_COUNT, tempTicks);
if (PSP_IsInited()) {
_snwprintf(tempTicks, 24, L"%lld", CoreTiming::GetTicks() - lastTicks);
SetDlgItemText(m_hDlg, IDC_DEBUG_COUNT, tempTicks);
}
// Update Register Dialog
for (int i=0; i<numCPUs; i++)
if (memoryWindow[i])