diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-27 18:07:41 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-27 18:07:41 +0000 |
commit | 1c6adee432acbc6ea6e8f7108d972d85f1017232 (patch) | |
tree | 63c053f199c8c928f3911c2a1a719b853104d7a2 /plugins/HistorySweeperLight/src/main.cpp | |
parent | 86f31d8f021efa4145a6a67a775f5b72ffc5348d (diff) |
fixes for StatusIconData initialization
git-svn-id: http://svn.miranda-ng.org/main/trunk@5863 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistorySweeperLight/src/main.cpp')
-rw-r--r-- | plugins/HistorySweeperLight/src/main.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/HistorySweeperLight/src/main.cpp b/plugins/HistorySweeperLight/src/main.cpp index 75f8d65143..3f3bfa84a1 100644 --- a/plugins/HistorySweeperLight/src/main.cpp +++ b/plugins/HistorySweeperLight/src/main.cpp @@ -53,9 +53,9 @@ int OnIconPressed(WPARAM wParam, LPARAM lParam) if ( !(sicd->flags & MBCF_RIGHTBUTTON) && !lstrcmpA(sicd->szModule, ModuleName)
&& db_get_b(NULL, ModuleName, "ChangeInMW", 0))
{
- int nh = sicd->dwId; HANDLE hContact = (HANDLE)wParam; StatusIconData sid = {0};
-
- sid.cbSize = sizeof(sid);
+ int nh = sicd->dwId; HANDLE hContact = (HANDLE)wParam;
+
+ StatusIconData sid = { sizeof(sid) };
sid.szModule = ModuleName;
sid.dwId = nh;
sid.flags = MBF_HIDDEN;
@@ -74,10 +74,9 @@ int OnIconPressed(WPARAM wParam, LPARAM lParam) int OnModulesLoaded(WPARAM wParam, LPARAM lParam)
{
- StatusIconData sid = {0};
int i, sweep = db_get_b(NULL, ModuleName, "SweepHistory", 0);
- sid.cbSize = sizeof(sid);
+ StatusIconData sid = { sizeof(sid) };
sid.szModule = ModuleName;
sid.hIcon = LoadIconEx("actG");
|