From 0e7aa6fc6df6fb16eb71d2667993f80518bafb08 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 30 Aug 2013 22:25:12 -0700 Subject: [PATCH] Fix debug counter, not supported in wsprintfW. --- Windows/Debugger/Debugger_Disasm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/Debugger/Debugger_Disasm.cpp b/Windows/Debugger/Debugger_Disasm.cpp index 60f66b0e70..488b843fe4 100644 --- a/Windows/Debugger/Debugger_Disasm.cpp +++ b/Windows/Debugger/Debugger_Disasm.cpp @@ -866,7 +866,7 @@ void CDisasm::UpdateDialog(bool _bComplete) rl->redraw(); // Update Debug Counter wchar_t tempTicks[24]; - wsprintf(tempTicks, L"%lld", CoreTiming::GetTicks()-lastTicks); + _snwprintf(tempTicks, 24, L"%lld", CoreTiming::GetTicks()-lastTicks); SetDlgItemText(m_hDlg, IDC_DEBUG_COUNT, tempTicks); // Update Register Dialog