summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clisttray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_modern/src/modern_clisttray.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clisttray.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_clisttray.cpp b/plugins/Clist_modern/src/modern_clisttray.cpp
index 7e2fcf48e5..583dec0ed8 100644
--- a/plugins/Clist_modern/src/modern_clisttray.cpp
+++ b/plugins/Clist_modern/src/modern_clisttray.cpp
@@ -171,9 +171,8 @@ static INT_PTR BuildTrayMenu(WPARAM, LPARAM)
static INT_PTR AddTrayMenuItem(WPARAM, LPARAM lParam)
{
TMO_MenuItem *pmi = (TMO_MenuItem*)lParam;
- pmi->ownerdata = mir_strdup(pmi->pszService);
- HGENMENU hNewItem = Menu_AddItem(hTrayMenuObject, pmi);
+ HGENMENU hNewItem = Menu_AddItem(hTrayMenuObject, pmi, mir_strdup(pmi->pszService));
Menu_ConfigureItem(hNewItem, MCI_OPT_UNIQUENAME, pmi->pszService);
return (INT_PTR)hNewItem;
}