diff options
Diffstat (limited to 'plugins/Clist_modern/src/modern_extraimage.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_extraimage.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_extraimage.cpp b/plugins/Clist_modern/src/modern_extraimage.cpp index 3a306081fe..5a9cc7bcbc 100644 --- a/plugins/Clist_modern/src/modern_extraimage.cpp +++ b/plugins/Clist_modern/src/modern_extraimage.cpp @@ -472,9 +472,8 @@ INT_PTR WideSetIconForExtraColumn(WPARAM wParam,LPARAM lParam) //return hImage on success,-1 on failure
INT_PTR WideAddIconToExtraImageList(WPARAM wParam,LPARAM lParam)
{
- int res = -1;
if (hWideExtraImageList == 0 || wParam == 0){return(-1);};
- res = ((int)ImageList_AddIcon(hWideExtraImageList,(HICON)wParam));
+ int res = ((int)ImageList_AddIcon(hWideExtraImageList,(HICON)wParam));
if (res == 0xFF) res = ((int)ImageList_AddIcon(hWideExtraImageList,(HICON)wParam));
if (res>0xFFFE) return -1;
return res;
|