From 03df9032e2b6248fed2bcf1e6d40fbfba4581779 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 27 Jun 2015 19:28:09 +0000 Subject: minor menu related fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@14420 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DbEditorPP/src/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/DbEditorPP') diff --git a/plugins/DbEditorPP/src/main.cpp b/plugins/DbEditorPP/src/main.cpp index c887ddb809..ab44b2f97e 100644 --- a/plugins/DbEditorPP/src/main.cpp +++ b/plugins/DbEditorPP/src/main.cpp @@ -115,15 +115,14 @@ int ModulesLoaded(WPARAM, LPARAM) // Register menu item CLISTMENUITEM mi = { 0 }; mi.hParentMenu = Menu_CreateRoot(MO_MAIN, LPGENT("Database"), 1900000001); + mi.position = 1900000001; mi.icolibItem = GetIcoLibHandle(ICO_DBE_BUTT); mi.name.a = modFullname; mi.pszService = "DBEditorpp/MenuCommand"; Menu_AddMainMenuItem(&mi); - memset(&mi, 0, sizeof(mi)); - mi.position = 1900000001; - mi.flags = 0; + mi.hParentMenu = NULL; mi.icolibItem = GetIcoLibHandle(ICO_REGUSER); mi.name.a = LPGEN("Open user tree in DBE++"); mi.pszService = "DBEditorpp/MenuCommand"; @@ -156,7 +155,6 @@ int ModulesLoaded(WPARAM, LPARAM) if (bServiceMode) CallService("DBEditorpp/MenuCommand", 0, 0); - return 0; } -- cgit v1.2.3