From be616d81bdaf8fd4ae61b0a145fb81bbdf467994 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 26 Jun 2015 22:03:02 +0000 Subject: YEEHAW! CLISTMENUITEM::pszPopupName also died git-svn-id: http://svn.miranda-ng.org/main/trunk@14404 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/src/services.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/Yahoo/src/services.cpp') diff --git a/protocols/Yahoo/src/services.cpp b/protocols/Yahoo/src/services.cpp index 644de2d398..a66b451843 100644 --- a/protocols/Yahoo/src/services.cpp +++ b/protocols/Yahoo/src/services.cpp @@ -368,19 +368,19 @@ void CYahooProto::MenuMainInit(void) HGENMENU hRoot = Menu_GetProtocolRoot(m_szModuleName); if (hRoot == NULL) { mi.position = 500015000; - mi.hParentMenu = HGENMENU_ROOT; - mi.flags = CMIF_ROOTHANDLE | CMIF_TCHAR | CMIF_KEEPUNTRANSLATED; + mi.flags = CMIF_TCHAR | CMIF_KEEPUNTRANSLATED; mi.icolibItem = GetIconHandle(IDI_YAHOO); mi.ptszName = m_tszUserName; hRoot = mainMenuRoot = Menu_AddProtoMenuItem(&mi); } else { - if (mainMenuRoot) + if (mainMenuRoot) { Menu_RemoveItem(mainMenuRoot); - mainMenuRoot = NULL; + mainMenuRoot = NULL; + } } - mi.flags = CMIF_ROOTHANDLE; + mi.flags = 0; mi.hParentMenu = hRoot; // Show custom status menu -- cgit v1.2.3