From c9a9db42fc216d6106e09def83a295c77ce080ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Thu, 19 Jul 2012 18:18:13 +0000 Subject: clist_modern crashfix git-svn-id: http://svn.miranda-ng.org/main/trunk@1048 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_clcpaint.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'plugins/Clist_modern/src/modern_clcpaint.cpp') diff --git a/plugins/Clist_modern/src/modern_clcpaint.cpp b/plugins/Clist_modern/src/modern_clcpaint.cpp index 294a5c7a1d..31e2dd2386 100644 --- a/plugins/Clist_modern/src/modern_clcpaint.cpp +++ b/plugins/Clist_modern/src/modern_clcpaint.cpp @@ -949,8 +949,8 @@ void CLCPaint::_PaintRowItemsEx( HWND hwnd, HDC hdcMem, struct ClcData *dat, str int idx = 0; if ( dat->filterSearch ) { - TCHAR* lowered = CharLowerW(NEWTSTR_ALLOCA(Drawing->szText)); - TCHAR* p1 = _tcsstr(lowered, dat->szQuickSearch); + TCHAR *lowered = CharLowerW(NEWTSTR_ALLOCA(Drawing->szText)); + TCHAR *p1 = _tcsstr(lowered, dat->szQuickSearch); if (p1) idx = int(p1 - lowered); } @@ -1034,8 +1034,8 @@ void CLCPaint::_PaintRowItemsEx( HWND hwnd, HDC hdcMem, struct ClcData *dat, str int idx = 0; if ( dat->filterSearch ) { - TCHAR* lowered = CharLowerW(NEWTSTR_ALLOCA(Drawing->szText)); - TCHAR* p1 = _tcsstr(lowered, dat->szQuickSearch); + TCHAR *lowered = CharLowerW(NEWTSTR_ALLOCA(Drawing->szText)); + TCHAR *p1 = _tcsstr(lowered, dat->szQuickSearch); if (p1) idx = int(p1 - lowered); } @@ -1127,8 +1127,8 @@ void CLCPaint::_PaintRowItemsEx( HWND hwnd, HDC hdcMem, struct ClcData *dat, str int idx = 0; if ( dat->filterSearch ) { - TCHAR* lowered = CharLowerW(NEWTSTR_ALLOCA(Drawing->szText)); - TCHAR* p1 = _tcsstr(lowered, dat->szQuickSearch); + TCHAR *lowered = CharLowerW(NEWTSTR_ALLOCA(Drawing->szText)); + TCHAR *p1 = _tcsstr(lowered, dat->szQuickSearch); if (p1) idx = int(p1 - lowered); } @@ -1224,8 +1224,8 @@ void CLCPaint::_PaintRowItemsEx( HWND hwnd, HDC hdcMem, struct ClcData *dat, str int idx = 0; if ( dat->filterSearch ) { - TCHAR* lowered = CharLowerW(NEWTSTR_ALLOCA(Drawing->szText)); - TCHAR* p1 = _tcsstr(lowered, dat->szQuickSearch); + TCHAR *lowered = CharLowerW(NEWTSTR_ALLOCA(Drawing->szText)); + TCHAR *p1 = _tcsstr(lowered, dat->szQuickSearch); if (p1) idx = int(p1 - lowered); } @@ -3181,8 +3181,8 @@ void CLCPaint::_DrawContactText( HDC hdcMem, struct ClcData *dat, struct ClcCont int idx = 0; if ( dat->filterSearch ) { - TCHAR* lowered = CharLowerW(NEWTSTR_ALLOCA(Drawing->szText)); - TCHAR* p1 = _tcsstr(lowered, dat->szQuickSearch); + TCHAR *lowered = CharLowerW(NEWTSTR_ALLOCA(Drawing->szText)); + TCHAR *p1 = _tcsstr(lowered, dat->szQuickSearch); if (p1) idx = int(p1 - lowered); } @@ -3204,8 +3204,8 @@ void CLCPaint::_DrawContactText( HDC hdcMem, struct ClcData *dat, struct ClcCont int idx = 0; if ( dat->filterSearch ) { - TCHAR* lowered = CharLowerW(NEWTSTR_ALLOCA(Drawing->szText)); - TCHAR* p1 = _tcsstr(lowered, dat->szQuickSearch); + TCHAR *lowered = CharLowerW(NEWTSTR_ALLOCA(Drawing->szText)); + TCHAR *p1 = _tcsstr(lowered, dat->szQuickSearch); if (p1) idx = int(p1 - lowered); } -- cgit v1.2.3