summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/delphi/m_clist.inc3
-rw-r--r--include/m_genmenu.h2
-rw-r--r--plugins/SecureIM/src/main.cpp1
-rw-r--r--plugins/SendScreenshotPlus/src/Main.cpp1
-rw-r--r--protocols/Steam/src/steam_menus.cpp2
-rw-r--r--src/mir_app/src/genmenu.cpp5
6 files changed, 1 insertions, 13 deletions
diff --git a/include/delphi/m_clist.inc b/include/delphi/m_clist.inc
index 7fe96dd4ff..04af0877d9 100644
--- a/include/delphi/m_clist.inc
+++ b/include/delphi/m_clist.inc
@@ -69,9 +69,6 @@ type
end;
const
- HGENMENU_ROOT = HGENMENU(-1);
-
-const
CMIF_GRAYED = 1;
CMIF_CHECKED = 2;
CMIF_HIDDEN = 4; // only works on contact menus
diff --git a/include/m_genmenu.h b/include/m_genmenu.h
index a1fd164538..c94aa39870 100644
--- a/include/m_genmenu.h
+++ b/include/m_genmenu.h
@@ -10,8 +10,6 @@
#else
DECLARE_HANDLE(HGENMENU);
#endif
-
-#define HGENMENU_ROOT ((HGENMENU)INVALID_HANDLE_VALUE)
// predefined menu objects
#define MO_MAIN (-1)
diff --git a/plugins/SecureIM/src/main.cpp b/plugins/SecureIM/src/main.cpp
index 670b86fc79..e2980834c9 100644
--- a/plugins/SecureIM/src/main.cpp
+++ b/plugins/SecureIM/src/main.cpp
@@ -43,7 +43,6 @@ static HGENMENU AddMenuItem(LPCSTR name, int pos, HICON hicon, LPCSTR service, i
mi.position = pos;
mi.hIcon = hicon;
mi.pszName = (char*)name;
- mi.hParentMenu = HGENMENU_ROOT;
mi.pszService = (char*)service;
return Menu_AddContactMenuItem(&mi);
}
diff --git a/plugins/SendScreenshotPlus/src/Main.cpp b/plugins/SendScreenshotPlus/src/Main.cpp
index 39709c0b3f..1d7e4b25c5 100644
--- a/plugins/SendScreenshotPlus/src/Main.cpp
+++ b/plugins/SendScreenshotPlus/src/Main.cpp
@@ -273,7 +273,6 @@ DLL_EXPORT int Load(void)
/// menu items
CLISTMENUITEM mi = { 0 };
mi.flags = CMIF_TCHAR;
- mi.hParentMenu = HGENMENU_ROOT;
mi.icolibItem = GetIconHandle(ICO_MAINXS);
#define _Menu_AddMainMenuItemEx(name,srv,pos) do{mi.ptszName=name;mi.pszService=srv;mi.position=pos;Menu_AddMainMenuItem(&mi);}while(0)
#define _Menu_AddContactMenuItemEx(name,srv,pos) do{mi.ptszName=name;mi.pszService=srv;mi.position=pos;Menu_AddContactMenuItem(&mi);}while(0)
diff --git a/protocols/Steam/src/steam_menus.cpp b/protocols/Steam/src/steam_menus.cpp
index 1032d56037..cf0dbf3917 100644
--- a/protocols/Steam/src/steam_menus.cpp
+++ b/protocols/Steam/src/steam_menus.cpp
@@ -107,9 +107,7 @@ void CSteamProto::OnInitStatusMenu()
if (!hSteamRoot) {
mi.ptszName = m_tszUserName;
mi.position = -1999901006;
- mi.hParentMenu = HGENMENU_ROOT;
mi.flags = CMIF_TCHAR | CMIF_KEEPUNTRANSLATED;
- //mi.icolibItem = NULL;
hSteamRoot = m_hMenuRoot = Menu_AddProtoMenuItem(&mi);
}
else {
diff --git a/src/mir_app/src/genmenu.cpp b/src/mir_app/src/genmenu.cpp
index f4b2529f7a..e4e4416f82 100644
--- a/src/mir_app/src/genmenu.cpp
+++ b/src/mir_app/src/genmenu.cpp
@@ -387,7 +387,7 @@ MIR_APP_DLL(void*) Menu_GetItemData(HGENMENU hMenuItem)
TMO_IntMenuItem *MO_GetIntMenuItem(HGENMENU wParam)
{
TMO_IntMenuItem *result = (TMO_IntMenuItem*)wParam;
- if (result == NULL || wParam == (HGENMENU)0xffff1234 || wParam == HGENMENU_ROOT)
+ if (result == NULL)
return NULL;
__try {
@@ -737,9 +737,6 @@ MIR_APP_DLL(HGENMENU) Menu_AddItem(int hMenuObject, TMO_MenuItem *pmi)
else p->iconId = ImageList_AddIcon(pmo->m_hMenuIcons, pmi->hIcon);
}
- if (p->mi.root == HGENMENU_ROOT)
- p->mi.root = NULL;
-
TMO_IntMenuItem *pRoot = (p->mi.root != NULL) ? MO_GetIntMenuItem(p->mi.root) : NULL;
if (pRoot) {
p->owner = &pRoot->submenu;