From 109877a3c75cb290c55755dcfc88794d2453669d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 30 Mar 2013 17:32:39 +0000 Subject: MS_DB_EVENT_* services remained, but their calls removed git-svn-id: http://svn.miranda-ng.org/main/trunk@4255 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BasicHistory/src/Scheduler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/BasicHistory/src/Scheduler.cpp') diff --git a/plugins/BasicHistory/src/Scheduler.cpp b/plugins/BasicHistory/src/Scheduler.cpp index d408563e72..dcc35024fd 100644 --- a/plugins/BasicHistory/src/Scheduler.cpp +++ b/plugins/BasicHistory/src/Scheduler.cpp @@ -1541,8 +1541,8 @@ void DoError(const TaskOptions& to, const std::wstring _error) std::wstring error = msg; error += L"\n"; error += _error; - DBEVENTINFO dbei = {0}; - dbei.cbSize = sizeof(DBEVENTINFO); + + DBEVENTINFO dbei = { sizeof(DBEVENTINFO) }; dbei.szModule = MODULE; dbei.flags = DBEF_UTF | DBEF_READ; dbei.timestamp = time(NULL); @@ -1553,7 +1553,7 @@ void DoError(const TaskOptions& to, const std::wstring _error) char* buf = new char[dbei.cbBlob]; dbei.cbBlob = WideCharToMultiByte(CP_UTF8, 0, error.c_str(), len, buf, dbei.cbBlob, NULL, NULL); dbei.pBlob = (PBYTE)buf; - CallService(MS_DB_EVENT_ADD, NULL, (LPARAM) & dbei); + db_event_add(NULL, &dbei); } -- cgit v1.2.3