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 --- protocols/JabberG/src/jabber_menu.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/JabberG/src/jabber_menu.cpp') diff --git a/protocols/JabberG/src/jabber_menu.cpp b/protocols/JabberG/src/jabber_menu.cpp index 11b651c68e..88f3746d36 100644 --- a/protocols/JabberG/src/jabber_menu.cpp +++ b/protocols/JabberG/src/jabber_menu.cpp @@ -193,7 +193,7 @@ void g_MenuInit(void) mi.name.a = "Cancel"; mi.position = 9999999; mi.hIcolibItem = Skin_GetIconHandle(SKINICON_OTHER_DELETE); - Menu_AddItem(hChooserMenu, &mi); + Menu_AddItem(hChooserMenu, &mi, NULL); } ////////////////////////////////////////////////////////////////////////////////////// @@ -784,10 +784,9 @@ void CJabberProto::GlobalMenuInit() CMenuItem mi; mi.flags = CMIF_TCHAR | CMIF_KEEPUNTRANSLATED; - mi.ownerdata = this; mi.position = iChooserMenuPos++; mi.name.t = m_tszUserName; - m_hChooseMenuItem = Menu_AddItem(hChooserMenu, &mi); + m_hChooseMenuItem = Menu_AddItem(hChooserMenu, &mi, this); ////////////////////////////////////////////////////////////////////////////////////// // Hotkeys -- cgit v1.2.3