diff options
Diffstat (limited to 'plugins/Clist_modern/src/modern_utils.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_utils.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Clist_modern/src/modern_utils.cpp b/plugins/Clist_modern/src/modern_utils.cpp index de11433e3f..18c03de468 100644 --- a/plugins/Clist_modern/src/modern_utils.cpp +++ b/plugins/Clist_modern/src/modern_utils.cpp @@ -135,13 +135,13 @@ BOOL DebugDeleteObject(HGDIOBJ a) #endif
// load small icon (not shared) it IS NEED to be destroyed
-HICON LoadSmallIcon(HINSTANCE hInstance, LPCTSTR lpIconName)
+HICON LoadSmallIcon(HINSTANCE hInstance, int index)
{
- HICON hIcon = NULL; // icon handle
- int index = -(int)lpIconName;
TCHAR filename[MAX_PATH] = {0};
- GetModuleFileName(hInstance,filename,MAX_PATH);
- ExtractIconEx(filename,index,NULL,&hIcon,1);
+ GetModuleFileName(hInstance, filename, MAX_PATH);
+
+ HICON hIcon = NULL;
+ ExtractIconEx(filename, index, NULL, &hIcon, 1);
return hIcon;
}
|