From 6ba9eb829a0b95bf9e6c6bdc9ed37d1d3947b87b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 7 Jul 2012 07:42:40 +0000 Subject: correct mir_free usage git-svn-id: http://svn.miranda-ng.org/main/trunk@808 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/modern_skinopt.cpp | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'plugins/Clist_modern/modern_skinopt.cpp') diff --git a/plugins/Clist_modern/modern_skinopt.cpp b/plugins/Clist_modern/modern_skinopt.cpp index 13f68037d7..9cdc929fc7 100644 --- a/plugins/Clist_modern/modern_skinopt.cpp +++ b/plugins/Clist_modern/modern_skinopt.cpp @@ -323,7 +323,7 @@ INT_PTR CALLBACK DlgSkinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara NMTREEVIEW * nmtv = ( NMTREEVIEW * ) lParam; if ( !nmtv ) return 0; if ( nmtv->hdr.code == TVN_SELCHANGEDA - || nmtv->hdr.code == TVN_SELCHANGEDW ) + || nmtv->hdr.code == TVN_SELCHANGEDW ) { SkinListData * sd = NULL; if ( hPreviewBitmap ) @@ -458,7 +458,7 @@ int SearchSkinFiles( HWND hwndDlg, TCHAR * Folder ) hFile = _tfindfirst( mask, &fd ); { do { - if ( fd.attrib&_A_SUBDIR && !( _tcsicmp( fd.name, _T(".")) == 0 ||_tcsicmp( fd.name, _T("..")) == 0 )) + if ( fd.attrib&_A_SUBDIR && !( _tcsicmp( fd.name, _T(".")) == 0 || _tcsicmp( fd.name, _T("..")) == 0 )) {//Next level of subfolders TCHAR path[MAX_PATH]; _sntprintf( path, SIZEOF( path ), _T("%s\\%s"), Folder, fd.name ); @@ -664,25 +664,12 @@ HTREEITEM AddItemToTree( HWND hTree, TCHAR * folder, TCHAR * itemName, void * da return 0; } - - - - - - - - - - - - INT_PTR SvcActiveSkin(WPARAM wParam, LPARAM lParam) { TCHAR *skinfile; TCHAR skinfull[MAX_PATH]; skinfile = DBGetStringT( NULL, SKIN, "SkinFile" ); - if ( skinfile ) - { + if ( skinfile ) { CallService( MS_UTILS_PATHTOABSOLUTET, ( WPARAM )skinfile, ( LPARAM )skinfull ); mir_free(skinfile); return (INT_PTR)mir_tstrdup(skinfull); -- cgit v1.2.3