diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/plugins/pluginopts.cpp | 4 |
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;
|