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/Scriver/src | |
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/Scriver/src')
-rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index 06124f4f3a..fd6aa4bb05 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -1253,8 +1253,7 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP case DM_SWITCHTYPING:
if (IsTypingNotificationSupported(dat)) {
- StatusIconData sid = {0};
- sid.cbSize = sizeof(sid);
+ StatusIconData sid = { sizeof(sid) };
sid.szModule = SRMMMOD;
sid.dwId = 1;
@@ -1470,7 +1469,6 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP if (dat->parent->hwndActive == hwndDlg) {
TCHAR szText[256];
StatusBarData sbd= {0};
- StatusIconData sid = {0};
sbd.iFlags = SBDF_TEXT | SBDF_ICON;
if (dat->messagesInProgress && (g_dat.flags & SMF_SHOWPROGRESS)) {
sbd.hIcon = GetCachedIcon("scriver_DELIVERING");
@@ -1496,7 +1494,8 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP SendMessage(dat->hwndParent, CM_UPDATESTATUSBAR, (WPARAM)&sbd, (LPARAM)hwndDlg);
UpdateReadChars(hwndDlg, dat);
- sid.cbSize = sizeof(sid);
+
+ StatusIconData sid = { sizeof(sid) };
sid.szModule = SRMMMOD;
sid.flags = MBF_DISABLED;
Srmm_ModifyIcon(dat->windowData.hContact, &sid);
|