From 916c8dea1e49bbfcf7503fc83db63ddc94648f9b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 29 Jun 2015 20:10:40 +0000 Subject: ownerData isolated inside TMO_IntMenuItem not to allow external structures to play with it git-svn-id: http://svn.miranda-ng.org/main/trunk@14443 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_genmenu.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/m_genmenu.h b/include/m_genmenu.h index 2ea11b239b..a159b34e22 100644 --- a/include/m_genmenu.h +++ b/include/m_genmenu.h @@ -46,7 +46,6 @@ struct TMO_MenuItem HICON hIcon; HANDLE hIcolibItem; }; - void *ownerdata; int hLangpack; }; @@ -104,7 +103,7 @@ EXTERN_C MIR_APP_DLL(BOOL) Menu_ProcessCommandById(int command, LPARAM lParam); // Adds a menu item to genmenu // Returns HGENMENU on success, or NULL on failure -EXTERN_C MIR_APP_DLL(HGENMENU) Menu_AddItem(int hMenuObject, TMO_MenuItem *pItem); +EXTERN_C MIR_APP_DLL(HGENMENU) Menu_AddItem(int hMenuObject, TMO_MenuItem *pItem, void *pUserData); ///////////////////////////////////////////////////////////////////////////////////////// // Adds new submenu -- cgit v1.2.3