summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/src/svcs_srmm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirOTR/src/svcs_srmm.cpp')
-rw-r--r--plugins/MirOTR/src/svcs_srmm.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/MirOTR/src/svcs_srmm.cpp b/plugins/MirOTR/src/svcs_srmm.cpp
index 882d0eaf70..785556dfcf 100644
--- a/plugins/MirOTR/src/svcs_srmm.cpp
+++ b/plugins/MirOTR/src/svcs_srmm.cpp
@@ -6,16 +6,14 @@ BBButton OTRButton;
int SVC_IconPressed(WPARAM hContact, LPARAM lParam)
{
StatusIconClickData *sicd = (StatusIconClickData *)lParam;
- if(sicd->cbSize < sizeof(StatusIconClickData))
- return 0;
- if(mir_strcmp(sicd->szModule, MODULENAME) == 0) {
+ if (mir_strcmp(sicd->szModule, MODULENAME) == 0) {
char *proto = GetContactProto(hContact);
- if(proto && db_get_b(hContact, proto, "ChatRoom", 0))
+ if (proto && db_get_b(hContact, proto, "ChatRoom", 0))
return 0;
ShowOTRMenu(hContact, sicd->clickLocation);
}
-
+
return 0;
}
@@ -27,7 +25,7 @@ void SetEncryptionStatus(MCONTACT hContact, TrustLevel level)
BBButton button = OTRButton;
- StatusIconData sid = { sizeof(sid) }, sid2 = { sizeof(sid) };
+ StatusIconData sid = {}, sid2 = {};
sid.szModule = MODULENAME;
sid.dwId = 0;
sid.flags = MBF_HIDDEN;
@@ -117,7 +115,7 @@ void InitSRMM()
hIconPrivate = IcoLib_GetIcon(ICON_PRIVATE, 0);
hIconUnverified = IcoLib_GetIcon(ICON_UNVERIFIED, 0);
- StatusIconData sid = { sizeof(sid) };
+ StatusIconData sid = {};
sid.szModule = MODULENAME;
sid.hIcon = hIconFinished;
sid.hIconDisabled = hIconNotSecure;