diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-22 18:00:57 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-22 18:00:57 +0300 |
commit | feac2b1a6a79c9d0bb58b0825ec2a776b888f9ce (patch) | |
tree | ef2fde024f8e13ac1ff5f2de8c772066319b3e6c /plugins/SimpleStatusMsg/src/main.cpp | |
parent | 737d05018bbc2da54414bea0c2ccce6f1e15bde2 (diff) |
m_genmenu.h unbound from hLangpack
Diffstat (limited to 'plugins/SimpleStatusMsg/src/main.cpp')
-rw-r--r-- | plugins/SimpleStatusMsg/src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/SimpleStatusMsg/src/main.cpp b/plugins/SimpleStatusMsg/src/main.cpp index 57725e0a64..ea68d2db5b 100644 --- a/plugins/SimpleStatusMsg/src/main.cpp +++ b/plugins/SimpleStatusMsg/src/main.cpp @@ -1276,7 +1276,7 @@ static int ChangeStatusMsgPrebuild(WPARAM, LPARAM) if (!iStatusMsgFlags || !iStatusMenuItemCount)
return 0;
- CMenuItem mi;
+ CMenuItem mi(g_plugin);
mi.flags = CMIF_UNICODE;
if (!db_get_b(NULL, MODULENAME, "ShowStatusMenuItem", 1))
mi.flags |= CMIF_HIDDEN;
@@ -1312,9 +1312,9 @@ static int ChangeStatusMsgPrebuild(WPARAM, LPARAM) if (pa->IsLocked()) {
wchar_t szBuffer[256];
mir_snwprintf(szBuffer, TranslateT("%s (locked)"), pa->tszAccountName);
- mi.root = Menu_CreateRoot(MO_STATUS, szBuffer, mi.position);
+ mi.root = g_plugin.addRootMenu(MO_STATUS, szBuffer, mi.position);
}
- else mi.root = Menu_CreateRoot(MO_STATUS, pa->tszAccountName, mi.position);
+ else mi.root = g_plugin.addRootMenu(MO_STATUS, pa->tszAccountName, mi.position);
hProtoStatusMenuItem[i++] = Menu_AddStatusMenuItem(&mi);
}
|