From 52a1f0f9f48082ccc40fde55030c46d1ca22c091 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 29 Oct 2012 14:08:21 +0000 Subject: fix for plugins icons git-svn-id: http://svn.miranda-ng.org/main/trunk@2108 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/plugins/pluginopts.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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 }; -- cgit v1.2.3