From 3234474db8b36b1a644d8686c5a54d261748769f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 27 Jun 2015 12:54:43 +0000 Subject: fix for the protocols' menus git-svn-id: http://svn.miranda-ng.org/main/trunk@14411 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_app/src/clistmenus.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/mir_app/src/clistmenus.cpp b/src/mir_app/src/clistmenus.cpp index 6d1e4ec605..0254b89e99 100644 --- a/src/mir_app/src/clistmenus.cpp +++ b/src/mir_app/src/clistmenus.cpp @@ -543,8 +543,12 @@ INT_PTR StatusMenuExecService(WPARAM wParam, LPARAM) return 0; if (smep->custom) { - if (smep->svc && *smep->svc) - CallService(smep->svc, 0, (LPARAM)smep->hMenuItem); + if (smep->svc && *smep->svc) { + if (smep->szProto && *smep->svc == '/') + ProtoCallService(smep->szProto, smep->svc, 0, (LPARAM)smep->hMenuItem); + else + CallService(smep->svc, 0, (LPARAM)smep->hMenuItem); + } return 0; } @@ -617,7 +621,7 @@ INT_PTR FreeOwnerDataStatusMenu(WPARAM, LPARAM lParam) if (smep != NULL) { mir_free(smep->szProto); mir_free(smep->svc); - mir_free(&smep); + mir_free(smep); } return (0); -- cgit v1.2.3