summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/clist/genmenuopt.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/clist/genmenuopt.cpp b/src/modules/clist/genmenuopt.cpp
index 38294756ae..1e2649b779 100644
--- a/src/modules/clist/genmenuopt.cpp
+++ b/src/modules/clist/genmenuopt.cpp
@@ -137,14 +137,14 @@ static int BuildMenuObjectsTree(HWND hwndDlg)
return FALSE;
for (i=0; i < g_menus.getCount(); i++) {
- if (g_menus[i]->id == (int)hStatusMenuObject || !g_menus[i]->m_bUseUserDefinedItems)
+ TIntMenuObject *p = g_menus[i];
+ if (p->id == (int)hStatusMenuObject || !p->m_bUseUserDefinedItems)
continue;
- tvis.item.lParam = (LPARAM)g_menus[i]->id;
- tvis.item.pszText = TranslateTS(g_menus[i]->ptszDisplayName);
+ tvis.item.lParam = (LPARAM)p->id;
+ tvis.item.pszText = TranslateTS(p->ptszDisplayName);
tvis.item.iImage = tvis.item.iSelectedImage = TRUE;
TreeView_InsertItem(hTree, &tvis);
- mir_free(tvis.item.pszText);
}
return 1;
}