summaryrefslogtreecommitdiff
path: root/src/modules/plugins/pluginopts.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-17 16:03:07 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-17 16:03:07 +0000
commit61138785bb35de7bbf7977dd41a91a206aff80b7 (patch)
tree77306b99d9d578ea64edbeea48e0b9b56a8bf0a9 /src/modules/plugins/pluginopts.cpp
parent856f2509d71577452c1b8d5387ef39de66103805 (diff)
plugin's load/unload fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@461 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/plugins/pluginopts.cpp')
-rw-r--r--src/modules/plugins/pluginopts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/plugins/pluginopts.cpp b/src/modules/plugins/pluginopts.cpp
index b7f5842541..3d87bc5540 100644
--- a/src/modules/plugins/pluginopts.cpp
+++ b/src/modules/plugins/pluginopts.cpp
@@ -201,12 +201,12 @@ static LRESULT CALLBACK PluginListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LP
hi.pt.x = LOWORD(lParam); hi.pt.y = HIWORD(lParam);
ListView_SubItemHitTest(hwnd, &hi);
if ( hi.iSubItem == 1 ) {
- LVITEM lvi;
+ LVITEM lvi = {0};
lvi.mask = LVIF_IMAGE | LVIF_PARAM;
lvi.stateMask = -1;
lvi.iItem = hi.iItem;
+ lvi.iSubItem = 1;
if ( ListView_GetItem( hwnd, &lvi )) {
- lvi.iSubItem = 1;
lvi.mask = LVIF_IMAGE;
PluginListItemData* dat = ( PluginListItemData* )lvi.lParam;