From 61138785bb35de7bbf7977dd41a91a206aff80b7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 17 Jun 2012 16:03:07 +0000 Subject: plugin's load/unload fix git-svn-id: http://svn.miranda-ng.org/main/trunk@461 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/plugins/pluginopts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/plugins/pluginopts.cpp') 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; -- cgit v1.2.3