summaryrefslogtreecommitdiff
path: root/plugins/MirOTR
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-29 20:10:40 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-29 20:10:40 +0000
commit916c8dea1e49bbfcf7503fc83db63ddc94648f9b (patch)
tree04b54b1ba8f482121d689cead7da679f444e4b1c /plugins/MirOTR
parent28b5f3536672bdfa6b3ed76a8483424453108b7a (diff)
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
Diffstat (limited to 'plugins/MirOTR')
-rw-r--r--plugins/MirOTR/src/mirotrmenu.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/MirOTR/src/mirotrmenu.cpp b/plugins/MirOTR/src/mirotrmenu.cpp
index e946b25199..60c8747b35 100644
--- a/plugins/MirOTR/src/mirotrmenu.cpp
+++ b/plugins/MirOTR/src/mirotrmenu.cpp
@@ -21,8 +21,7 @@ static HGENMENU AddMirOTRMenuItem(TMO_MenuItem *pmi, const char *pszService)
// add owner data
lpMirOTRMenuExecParam cmep = ( lpMirOTRMenuExecParam )mir_calloc(sizeof(MirOTRMenuExecParam));
cmep->szServiceName = mir_strdup(pszService);
- pmi->ownerdata = cmep;
- return Menu_AddItem(hMirOTRMenuObject, pmi);
+ return Menu_AddItem(hMirOTRMenuObject, pmi, cmep);
}
//called with: