diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-11 20:16:00 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-11 20:16:00 +0000 |
commit | 09ca7f50100b9ee49fa8caffc08d944d0604b90d (patch) | |
tree | fb51144d927e3e623db00cc710ae871ffbf79ce2 | |
parent | e5a8933a9842f02a322ecb59d720030e4e81593d (diff) |
this constant is not actual for a long time
git-svn-id: http://svn.miranda-ng.org/main/trunk@7601 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | include/m_clist.h | 2 | ||||
-rw-r--r-- | src/modules/clist/clistmenus.cpp | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/include/m_clist.h b/include/m_clist.h index a09e85dd28..5b198fd9b4 100644 --- a/include/m_clist.h +++ b/include/m_clist.h @@ -116,8 +116,6 @@ typedef struct { }
CLISTMENUITEM;
-#define CLISTMENUITEM_OLDSIZE_V1 (offsetof(CLISTMENUITEM,hLangpack))
-
#define HGENMENU_ROOT ((HGENMENU)-1)
#define CMIF_GRAYED 1
diff --git a/src/modules/clist/clistmenus.cpp b/src/modules/clist/clistmenus.cpp index a2487c77d3..2de2d14240 100644 --- a/src/modules/clist/clistmenus.cpp +++ b/src/modules/clist/clistmenus.cpp @@ -1129,7 +1129,7 @@ int fnConvertMenu(CLISTMENUITEM* mi, TMO_MenuItem* pmi) if (mi == NULL || pmi == NULL)
return FALSE;
- if (mi->cbSize != sizeof(CLISTMENUITEM) && mi->cbSize != CLISTMENUITEM_OLDSIZE_V1)
+ if (mi->cbSize != sizeof(CLISTMENUITEM))
return FALSE;
memset(pmi, 0, sizeof(TMO_MenuItem));
@@ -1140,9 +1140,7 @@ int fnConvertMenu(CLISTMENUITEM* mi, TMO_MenuItem* pmi) pmi->hotKey = mi->hotKey;
pmi->pszName = mi->pszName;
pmi->position = mi->position;
- if (mi->cbSize == sizeof(CLISTMENUITEM))
- pmi->hLangpack = mi->hLangpack;
-
+ pmi->hLangpack = mi->hLangpack;
return TRUE;
}
|