summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src/gg.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-22 13:35:02 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-22 13:35:02 +0000
commitb3506557a58f53ed0fc3a96c4ec4a3b8098a542d (patch)
tree520a1cb861afa7600c0553ce8b2558f725a70ed1 /protocols/Gadu-Gadu/src/gg.cpp
parent4625aafb053a002f0223bfbe76abfbec629feacf (diff)
- CLISTMENUITEM::cbSize - atavism removed;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14325 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/src/gg.cpp')
-rw-r--r--protocols/Gadu-Gadu/src/gg.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Gadu-Gadu/src/gg.cpp b/protocols/Gadu-Gadu/src/gg.cpp
index b5f5c81243..a70b5a6710 100644
--- a/protocols/Gadu-Gadu/src/gg.cpp
+++ b/protocols/Gadu-Gadu/src/gg.cpp
@@ -212,7 +212,7 @@ static int gg_prebuildcontactmenu(WPARAM hContact, LPARAM lParam)
if (gg == NULL)
return 0;
- CLISTMENUITEM mi = { sizeof(mi) };
+ CLISTMENUITEM mi = { 0 };
mi.flags = CMIM_NAME | CMIM_FLAGS | CMIF_TCHAR;
if ( gg->getDword(hContact, GG_KEY_UIN, 0) == gg->getByte(GG_KEY_UIN, 0) ||
gg->isChatRoom(hContact) || db_get_b(hContact, "CList", "NotOnList", 0))
@@ -242,7 +242,7 @@ void GGPROTO::block_init()
mir_snprintf(service, _countof(service), "%s%s", m_szModuleName, GGS_BLOCKUSER);
CreateProtoService(GGS_BLOCKUSER, &GGPROTO::blockuser);
- CLISTMENUITEM mi = { sizeof(mi) };
+ CLISTMENUITEM mi = { 0 };
mi.flags = CMIF_TCHAR;
mi.position = -500050000;
mi.icolibItem = iconList[8].hIcolib;
@@ -266,7 +266,7 @@ void GGPROTO::block_uninit()
// Menus initialization
void GGPROTO::menus_init()
{
- CLISTMENUITEM mi = { sizeof(mi) };
+ CLISTMENUITEM mi = { 0 };
HGENMENU hGCRoot, hCLRoot, hRoot = MO_GetProtoRootMenu(m_szModuleName);
if (hRoot == NULL) {