From e53b020018a365cd23fcb897980da5f6a0075e16 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 14 Jun 2012 18:27:05 +0000 Subject: 10 bytes that shattered the core git-svn-id: http://svn.miranda-ng.org/main/trunk@415 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/icolib/skin2icons.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/icolib') diff --git a/src/modules/icolib/skin2icons.cpp b/src/modules/icolib/skin2icons.cpp index 0993e7ef10..29d69ad8f4 100644 --- a/src/modules/icolib/skin2icons.cpp +++ b/src/modules/icolib/skin2icons.cpp @@ -363,7 +363,7 @@ IconSourceItem* GetIconSourceItemFromPath( const TCHAR* path, int cxIcon, int cy return NULL; lstrcpyn( file, path, SIZEOF( file )); - comma = _tcsrchr( file, ', ' ); + comma = _tcsrchr( file, ',' ); if ( !comma ) n = 0; else { @@ -429,7 +429,7 @@ static HICON ExtractIconFromPath( const TCHAR *path, int cxIcon, int cyIcon ) return (HICON)NULL; lstrcpyn( file, path, SIZEOF( file )); - comma = _tcsrchr( file, ', ' ); + comma = _tcsrchr( file, ',' ); if ( !comma ) n = 0; else { @@ -955,7 +955,7 @@ static void LoadSectionIcons(TCHAR *filename, SectionItem* sectionActive) HICON hIcon; int indx; - mir_sntprintf( path, SIZEOF(path), _T("%s, "), filename ); + mir_sntprintf( path, SIZEOF(path), _T("%s,"), filename ); suffIndx = lstrlen( path ); EnterCriticalSection( &csIconList ); @@ -1366,7 +1366,7 @@ INT_PTR CALLBACK DlgProcIconImport(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lvi.mask=LVIF_PARAM; lvi.iItem = dragItem; lvi.iSubItem = 0; ListView_GetItem(hPreview, &lvi); - mir_sntprintf(path, MAX_PATH, _T("%s, %d"), filename, (int)lvi.lParam); + mir_sntprintf(path, MAX_PATH, _T("%s,%d"), filename, (int)lvi.lParam); SendMessage(hwndParent, DM_CHANGEICON, dropHiLite, (LPARAM)path); ListView_SetItemState(GetDlgItem(hwndParent, IDC_PREVIEW), dropHiLite, 0, LVIS_DROPHILITED); } } -- cgit v1.2.3