summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/src/mirotrmenu.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-12-15 19:34:20 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-12-15 19:34:20 +0000
commit745da18e1d7f576551444122d8b8f7eec0ad3fc9 (patch)
tree678c090813fb7d31dff980c2548cb21273bbbd62 /plugins/MirOTR/src/mirotrmenu.cpp
parentf43be0afa0cfc3262d040e6e28642e5d10b215ca (diff)
missing UIDs in MirOTR menu
git-svn-id: http://svn.miranda-ng.org/main/trunk@15869 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/src/mirotrmenu.cpp')
-rw-r--r--plugins/MirOTR/src/mirotrmenu.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/MirOTR/src/mirotrmenu.cpp b/plugins/MirOTR/src/mirotrmenu.cpp
index 93ea2f2696..407f1cbf63 100644
--- a/plugins/MirOTR/src/mirotrmenu.cpp
+++ b/plugins/MirOTR/src/mirotrmenu.cpp
@@ -10,7 +10,7 @@ typedef struct
{
char *szServiceName;
}
-MirOTRMenuExecParam,*lpMirOTRMenuExecParam;
+MirOTRMenuExecParam, *lpMirOTRMenuExecParam;
////////////////////////////////////////////
// MirOTR MENU
@@ -19,7 +19,7 @@ MirOTRMenuExecParam,*lpMirOTRMenuExecParam;
static HGENMENU AddMirOTRMenuItem(TMO_MenuItem *pmi, const char *pszService)
{
// add owner data
- lpMirOTRMenuExecParam cmep = ( lpMirOTRMenuExecParam )mir_calloc(sizeof(MirOTRMenuExecParam));
+ lpMirOTRMenuExecParam cmep = (lpMirOTRMenuExecParam)mir_calloc(sizeof(MirOTRMenuExecParam));
cmep->szServiceName = mir_strdup(pszService);
return Menu_AddItem(hMirOTRMenuObject, pmi, cmep);
}
@@ -27,12 +27,12 @@ static HGENMENU AddMirOTRMenuItem(TMO_MenuItem *pmi, const char *pszService)
//called with:
//wparam - ownerdata
//lparam - lparam from winproc
-INT_PTR MirOTRMenuExecService(WPARAM wParam,LPARAM lParam)
+INT_PTR MirOTRMenuExecService(WPARAM wParam, LPARAM lParam)
{
- if (wParam!=0) {
- lpMirOTRMenuExecParam cmep=(lpMirOTRMenuExecParam)wParam;
+ if (wParam != 0) {
+ lpMirOTRMenuExecParam cmep = (lpMirOTRMenuExecParam)wParam;
//call with wParam=(MCONTACT)hContact
- CallService(cmep->szServiceName,lParam,0);
+ CallService(cmep->szServiceName, lParam, 0);
}
return 0;
}
@@ -85,7 +85,7 @@ INT_PTR MirOTRMenuCheckService(WPARAM wParam, LPARAM)
Menu_ModifyItem(hStatusInfoItem, TranslateT(LANG_STATUS_DISABLED), IcoLib_GetIconHandle(ICON_NOT_PRIVATE));
}
}
- else if (pcpp->MenuItemHandle == hHTMLConvMenuItem)
+ else if (pcpp->MenuItemHandle == hHTMLConvMenuItem)
Menu_SetChecked(hHTMLConvMenuItem, db_get_b(hContact, MODULENAME, "HTMLConv", 0) != 0);
}
return TRUE;
@@ -209,7 +209,7 @@ void UninitMirOTRMenu(void)
hDummyPaintWin = 0;
UnregisterClass(_T("MirOTRPopupMenuProcessor"), hInst);
-
+
Menu_RemoveObject(hMirOTRMenuObject);
hMirOTRMenuObject = 0;
}