diff options
author | George Hazan <george.hazan@gmail.com> | 2012-10-29 14:08:21 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-10-29 14:08:21 +0000 |
commit | 52a1f0f9f48082ccc40fde55030c46d1ca22c091 (patch) | |
tree | 7174cc8d54a80ddb20d31ee71b178605456ad2d8 /src/modules | |
parent | 7cfbeb84bd3d396a8c1771ea19cb0979aa45bc26 (diff) |
fix for plugins icons
git-svn-id: http://svn.miranda-ng.org/main/trunk@2108 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/plugins/pluginopts.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/plugins/pluginopts.cpp b/src/modules/plugins/pluginopts.cpp index 7e6012577c..2f64861b79 100644 --- a/src/modules/plugins/pluginopts.cpp +++ b/src/modules/plugins/pluginopts.cpp @@ -52,8 +52,7 @@ static BOOL dialogListPlugins(WIN32_FIND_DATA* fd, TCHAR* path, WPARAM, LPARAM l {
TCHAR buf[MAX_PATH];
mir_sntprintf(buf, SIZEOF(buf), _T("%s\\Plugins\\%s"), path, fd->cFileName);
-
- CharLower(fd->cFileName);
+ HINSTANCE hInst = GetModuleHandle(buf);
BASIC_PLUGIN_INFO pi;
if (checkAPI(buf, &pi, MIRANDA_VERSION_CORE, CHECKAPI_NONE) == 0)
@@ -62,9 +61,11 @@ static BOOL dialogListPlugins(WIN32_FIND_DATA* fd, TCHAR* path, WPARAM, LPARAM l int isdb = hasMuuid(pi, miid_database);
PluginListItemData* dat = (PluginListItemData*)mir_alloc(sizeof(PluginListItemData));
+ dat->hInst = hInst;
+
+ CharLower(fd->cFileName);
_tcsncpy(dat->fileName, fd->cFileName, SIZEOF(dat->fileName));
- HINSTANCE hInst = dat->hInst = GetModuleHandle(buf);
HWND hwndList = (HWND)lParam;
LVITEM it = { 0 };
|