summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-26 20:41:20 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-26 20:41:20 +0000
commit5e7a5ddc8845cfb289fbfbc5947e941f9bc063d8 (patch)
tree56f2b836076802f2eb4564f741a641de9f59c902 /plugins
parent439237199fbb2cd9a64771a5f267f7f9e5412a33 (diff)
also fix for h++
git-svn-id: http://svn.miranda-ng.org/main/trunk@13853 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/msglog.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp
index afad1fe3de..689892e4b0 100644
--- a/plugins/TabSRMM/src/msglog.cpp
+++ b/plugins/TabSRMM/src/msglog.cpp
@@ -1172,9 +1172,19 @@ void TSAPI StreamInEvents(HWND hwndDlg, MEVENT hDbEventFirst, int count, int fAp
today = mktime(&tm_today);
if (dat->hwndIEView != NULL || dat->hwndHPP != NULL) {
- IEVIEWEVENT event = { sizeof(event) };
+ const char *pszService;
+ IEVIEWEVENT event = { 0 };
event.cbSize = sizeof(IEVIEWEVENT);
- event.hwnd = (dat->hwndIEView != NULL) ? dat->hwndIEView : dat->hwndHPP;
+ if (dat->hwndIEView != NULL) {
+ event.pszProto = dat->szProto;
+ event.hwnd = dat->hwndIEView;
+ pszService = MS_IEVIEW_EVENT;
+ }
+ else {
+ event.hwnd = dat->hwndHPP;
+ pszService = MS_HPP_EG_EVENT;
+ }
+
event.hContact = dat->hContact;
event.dwFlags = (dat->dwFlags & MWF_LOG_RTL) ? IEEF_RTL : 0;
if (dat->sendMode & SMODE_FORCEANSI) {
@@ -1185,7 +1195,7 @@ void TSAPI StreamInEvents(HWND hwndDlg, MEVENT hDbEventFirst, int count, int fAp
if (!fAppend) {
event.iType = IEE_CLEAR_LOG;
- CallService(MS_IEVIEW_EVENT, 0, (LPARAM)&event);
+ CallService(pszService, 0, (LPARAM)&event);
}
IEVIEWEVENTDATA evData = { 0 };
@@ -1210,8 +1220,7 @@ void TSAPI StreamInEvents(HWND hwndDlg, MEVENT hDbEventFirst, int count, int fAp
event.hDbEventFirst = hDbEventFirst;
}
event.count = count;
- event.pszProto = dat->szProto;
- CallService(MS_IEVIEW_EVENT, 0, (LPARAM)&event);
+ CallService(pszService, 0, (LPARAM)&event);
DM_ScrollToBottom(dat, 0, 0);
if (fAppend && hDbEventFirst)
dat->hDbEventLast = hDbEventFirst;