From a68d05a5501a4e2d03205352a07de6e10d9313c3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 28 Jun 2015 21:34:46 +0000 Subject: fix for menus in the service mode git-svn-id: http://svn.miranda-ng.org/main/trunk@14435 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_app/src/clistmenus.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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; -- cgit v1.2.3