summaryrefslogtreecommitdiff
path: root/plugins/MirOTR
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-28 14:21:33 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-28 14:21:33 +0300
commiteccbb5307a048e70ac4adb0d3fd333be28245fa8 (patch)
treea9a2c92c13391a5cf288c9e0d841833c54f3cd5e /plugins/MirOTR
parent6a9e3738066370dac38f5f6768b8a6f61fe709e0 (diff)
massive cleanup of useless cbSize fields
Diffstat (limited to 'plugins/MirOTR')
-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;