diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-26 22:09:49 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-26 22:09:49 +0000 |
commit | c3aa3fb189b237130d658811f04d32c7ae739fa4 (patch) | |
tree | 587ff11b1b80b62507d0ae881997d46a803150bf /src | |
parent | be616d81bdaf8fd4ae61b0a145fb81bbdf467994 (diff) |
we don't need HGENMENU_ROOT anymore, die, crap, die
git-svn-id: http://svn.miranda-ng.org/main/trunk@14405 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/genmenu.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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;
|