diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-28 21:34:46 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-28 21:34:46 +0000 |
commit | a68d05a5501a4e2d03205352a07de6e10d9313c3 (patch) | |
tree | 0876516ee0a6e11d206b9fa401532a21621d4a4c /src | |
parent | 7beb7bfa38534b47587d80b257fa90d2258eaa58 (diff) |
fix for menus in the service mode
git-svn-id: http://svn.miranda-ng.org/main/trunk@14435 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/clistmenus.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mir_app/src/clistmenus.cpp b/src/mir_app/src/clistmenus.cpp index 5effa2ea0f..0c7952c83c 100644 --- a/src/mir_app/src/clistmenus.cpp +++ b/src/mir_app/src/clistmenus.cpp @@ -190,6 +190,9 @@ MIR_APP_DLL(HGENMENU) Menu_AddMainMenuItem(TMO_MenuItem *pmi, int _hLang) pmi->ownerdata = mmep;
TMO_IntMenuItem *pimi = Menu_AddItem(hMainMenuObject, pmi);
+ if (pimi == NULL)
+ return NULL;
+
pimi->hLangpack = _hLang;
mmep->pimi = pimi;
@@ -256,6 +259,9 @@ MIR_APP_DLL(HGENMENU) Menu_AddContactMenuItem(TMO_MenuItem *pmi, const char *psz // may be need to change how UniqueName is formed?
TMO_IntMenuItem *pimi = Menu_AddItem(hContactMenuObject, pmi);
+ if (pimi == NULL)
+ return NULL;
+
pimi->hLangpack = _hLang;
cmep->pimi = pimi;
@@ -383,6 +389,9 @@ MIR_APP_DLL(HGENMENU) Menu_AddStatusMenuItem(TMO_MenuItem *pmi, const char *pszP }
TMO_IntMenuItem *pimi = Menu_AddItem(hStatusMenuObject, pmi);
+ if (pimi == NULL)
+ return NULL;
+
pimi->hLangpack = _hLangpack;
if (smep)
smep->hMenuItem = pimi;
|