From c2cb7db85cbd67c5b95c2735d9b917eb0ac1d234 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 12 Aug 2013 15:30:21 +0000 Subject: - fix for a rare crash on tabsrmm tooltips; - toolbar buttons added to a log git-svn-id: http://svn.miranda-ng.org/main/trunk@5659 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/contactcache.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/TabSRMM/src/contactcache.cpp') diff --git a/plugins/TabSRMM/src/contactcache.cpp b/plugins/TabSRMM/src/contactcache.cpp index 634fa76176..8dc00e2830 100644 --- a/plugins/TabSRMM/src/contactcache.cpp +++ b/plugins/TabSRMM/src/contactcache.cpp @@ -308,11 +308,11 @@ void CContactCache::saveHistory(WPARAM wParam, LPARAM lParam) if (m_history[m_iHistoryTop].szText == NULL) { if (iLength < HISTORY_INITIAL_ALLOCSIZE) iLength = HISTORY_INITIAL_ALLOCSIZE; - m_history[m_iHistoryTop].szText = (TCHAR *)malloc(iLength); + m_history[m_iHistoryTop].szText = (TCHAR*)malloc(iLength); m_history[m_iHistoryTop].lLen = iLength; } else { if (iLength > m_history[m_iHistoryTop].lLen) { - m_history[m_iHistoryTop].szText = (TCHAR *)realloc(m_history[m_iHistoryTop].szText, iLength); + m_history[m_iHistoryTop].szText = (TCHAR*)realloc(m_history[m_iHistoryTop].szText, iLength); m_history[m_iHistoryTop].lLen = iLength; } } @@ -399,7 +399,7 @@ void CContactCache::allocHistory() m_iHistoryTop = 0; if (m_history) ZeroMemory(m_history, sizeof(TInputHistory) * m_iHistorySize); - m_history[m_iHistorySize].szText = (TCHAR *)malloc((HISTORY_INITIAL_ALLOCSIZE + 1) * sizeof(TCHAR)); + m_history[m_iHistorySize].szText = (TCHAR*)malloc((HISTORY_INITIAL_ALLOCSIZE + 1) * sizeof(TCHAR)); m_history[m_iHistorySize].lLen = HISTORY_INITIAL_ALLOCSIZE; } @@ -583,7 +583,7 @@ TCHAR* CContactCache::getNormalizedStatusMsg(const TCHAR *src, bool fStripAll) } if (i) { - tszResult = (TCHAR *)mir_alloc((dest.length() + 1) * sizeof(TCHAR)); + tszResult = (TCHAR*)mir_alloc((dest.length() + 1) * sizeof(TCHAR)); _tcscpy(tszResult, dest.c_str()); tszResult[dest.length()] = 0; } -- cgit v1.2.3