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_extraimage.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_extraimage.cpp')
-rw-r--r-- | plugins/Clist_modern/modern_extraimage.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Clist_modern/modern_extraimage.cpp b/plugins/Clist_modern/modern_extraimage.cpp index 77f805d20d..f0a5799355 100644 --- a/plugins/Clist_modern/modern_extraimage.cpp +++ b/plugins/Clist_modern/modern_extraimage.cpp @@ -85,8 +85,8 @@ __inline int bti(boolean b) int colsum(int from,int to)
{
int i,sum;
- if (from < 0||from >= EXTRACOLUMNCOUNT){return(-1);};
- if (to < 0||to >= EXTRACOLUMNCOUNT){return(-1);};
+ if (from < 0 || from >= EXTRACOLUMNCOUNT){return(-1);};
+ if (to < 0 || to >= EXTRACOLUMNCOUNT){return(-1);};
if (to < from){return(-1);};
sum = 0;
@@ -134,7 +134,7 @@ INT_PTR SetIconForExtraColumn(WPARAM wParam,LPARAM lParam) HANDLE hItem;
if (pcli->hwndContactTree == 0){return(-1);};
- if (wParam == 0||lParam == 0){return(-1);};
+ if (wParam == 0 || lParam == 0){return(-1);};
piec = (pIconExtraColumn)lParam;
if (piec->cbSize != sizeof(IconExtraColumn)){return(-1);};
@@ -152,7 +152,7 @@ INT_PTR SetIconForExtraColumn(WPARAM wParam,LPARAM lParam) INT_PTR AddIconToExtraImageList(WPARAM wParam,LPARAM lParam)
{
int res = -1;
- if (hExtraImageList == 0||wParam == 0){return(-1);};
+ if (hExtraImageList == 0 || wParam == 0){return(-1);};
res = ((int)ImageList_AddIcon(hExtraImageList,(HICON)wParam));
if (res>254) return -1;
return res;
@@ -464,7 +464,7 @@ INT_PTR WideSetIconForExtraColumn(WPARAM wParam,LPARAM lParam) HANDLE hItem;
if (pcli->hwndContactTree == 0){return(-1);};
- if (wParam == 0||lParam == 0){return(-1);};
+ if (wParam == 0 || lParam == 0){return(-1);};
piec = (pIconExtraColumn)lParam;
if (piec->cbSize != sizeof(IconExtraColumn)){return(-1);};
@@ -484,7 +484,7 @@ INT_PTR WideSetIconForExtraColumn(WPARAM wParam,LPARAM lParam) INT_PTR WideAddIconToExtraImageList(WPARAM wParam,LPARAM lParam)
{
int res = -1;
- if (hWideExtraImageList == 0||wParam == 0){return(-1);};
+ if (hWideExtraImageList == 0 || wParam == 0){return(-1);};
res = ((int)ImageList_AddIcon(hWideExtraImageList,(HICON)wParam));
if (res == 0xFF) res = ((int)ImageList_AddIcon(hWideExtraImageList,(HICON)wParam));
if (res>0xFFFE) return -1;
|