diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-07 07:42:40 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-07 07:42:40 +0000 |
commit | 6ba9eb829a0b95bf9e6c6bdc9ed37d1d3947b87b (patch) | |
tree | 6d578ae1a68dcc7ab48d38ef9c33605d392d8186 /plugins/Clist_modern/modern_skinopt.cpp | |
parent | 3447a9bff3aa6ba3a2d9bab91653cab257c29bcf (diff) |
correct mir_free usage
git-svn-id: http://svn.miranda-ng.org/main/trunk@808 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/modern_skinopt.cpp')
-rw-r--r-- | plugins/Clist_modern/modern_skinopt.cpp | 19 |
1 files changed, 3 insertions, 16 deletions
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);
|