diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-17 11:13:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-17 11:13:48 +0000 |
commit | 79c0e81fbfd1f933a1e251db23dc1fd537ddd239 (patch) | |
tree | a43cd8362d2f65c11e7db664fded2f3e1b105ca0 /plugins/Clist_modern/src/modern_utils.cpp | |
parent | 702f2b6951058a0569f0210a19545c79bcb5b511 (diff) |
- all file paths inside clist_modern became Unicode;
- some major resource leaks fixed;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@4069 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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;
}
|