summaryrefslogtreecommitdiff
path: root/plugins/NewXstatusNotify/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-01-16 17:49:54 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-01-16 17:49:54 +0000
commit85c0b6a96f366bdf0ca334ee7cb1877fb3f2288c (patch)
treefe07935255b7432938f282419c3ab1378524c02f /plugins/NewXstatusNotify/src
parent8a09c895c4cd0e9cc87c38181ae2913dba77c30b (diff)
MEVENT - the strict type for events, they are not HANDLE anymore
git-svn-id: http://svn.miranda-ng.org/main/trunk@11866 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify/src')
-rw-r--r--plugins/NewXstatusNotify/src/main.cpp6
-rw-r--r--plugins/NewXstatusNotify/src/xstatus.cpp2
-rw-r--r--plugins/NewXstatusNotify/src/xstatus.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins/NewXstatusNotify/src/main.cpp b/plugins/NewXstatusNotify/src/main.cpp
index 18d3ee05ef..14cdf6b503 100644
--- a/plugins/NewXstatusNotify/src/main.cpp
+++ b/plugins/NewXstatusNotify/src/main.cpp
@@ -287,7 +287,7 @@ void LogSMsgToDB(STATUSMSGINFO *smi, const TCHAR *tmplt)
dbei.timestamp = (DWORD)time(NULL);
dbei.szModule = MODULE;
- HANDLE hDBEvent = db_event_add(smi->hContact, &dbei);
+ MEVENT hDBEvent = db_event_add(smi->hContact, &dbei);
mir_free(blob);
mir_free(str);
@@ -330,7 +330,7 @@ void BlinkIcon(MCONTACT hContact, HICON hIcon, TCHAR *stzText)
cle.cbSize = sizeof(cle);
cle.flags = CLEF_ONLYAFEW | CLEF_TCHAR;
cle.hContact = hContact;
- cle.hDbEvent = (HANDLE)hContact;
+ cle.hDbEvent = hContact;
cle.hIcon = hIcon;
cle.pszService = "UserOnline/Description";
cle.ptszTooltip = stzText;
@@ -376,7 +376,7 @@ int ContactStatusChanged(MCONTACT hContact, WORD oldStatus, WORD newStatus)
dbei.timestamp = (DWORD)time(NULL);
dbei.szModule = MODULE;
- HANDLE hDBEvent = db_event_add(hContact, &dbei);
+ MEVENT hDBEvent = db_event_add(hContact, &dbei);
mir_free(blob);
if (opt.LogToDB_WinOpen && opt.LogToDB_Remove) {
diff --git a/plugins/NewXstatusNotify/src/xstatus.cpp b/plugins/NewXstatusNotify/src/xstatus.cpp
index 786ffe4265..f8dae508eb 100644
--- a/plugins/NewXstatusNotify/src/xstatus.cpp
+++ b/plugins/NewXstatusNotify/src/xstatus.cpp
@@ -325,7 +325,7 @@ void LogChangeToDB(XSTATUSCHANGE *xsc)
dbei.timestamp = (DWORD)time(NULL);
dbei.szModule = MODULE;
- HANDLE hDBEvent = db_event_add(xsc->hContact, &dbei);
+ MEVENT hDBEvent = db_event_add(xsc->hContact, &dbei);
mir_free(blob);
if (opt.XLogToDB_WinOpen && opt.XLogToDB_Remove) {
diff --git a/plugins/NewXstatusNotify/src/xstatus.h b/plugins/NewXstatusNotify/src/xstatus.h
index 9d30a65d23..1c82461245 100644
--- a/plugins/NewXstatusNotify/src/xstatus.h
+++ b/plugins/NewXstatusNotify/src/xstatus.h
@@ -95,7 +95,7 @@ typedef struct tagXSTATUSCHANGE
typedef struct tagDBEVENT
{
MCONTACT hContact;
- HANDLE hDBEvent;
+ MEVENT hDBEvent;
} DBEVENT;
typedef struct tagPROTOTEMPLATE