From 85c0b6a96f366bdf0ca334ee7cb1877fb3f2288c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 16 Jan 2015 17:49:54 +0000 Subject: 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 --- plugins/NewEventNotify/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/NewEventNotify/src/main.cpp') diff --git a/plugins/NewEventNotify/src/main.cpp b/plugins/NewEventNotify/src/main.cpp index 9c5f46a6e2..63fd90ea86 100644 --- a/plugins/NewEventNotify/src/main.cpp +++ b/plugins/NewEventNotify/src/main.cpp @@ -60,7 +60,7 @@ HANDLE hHookedDeletedEvent; //wParam: contact-handle //lParam: dbevent-handle -int HookedNewEvent(WPARAM hContact, LPARAM lParam) +int HookedNewEvent(WPARAM hContact, LPARAM hDbEvent) { //are popups currently enabled? if (pluginOptions.bDisable) @@ -68,7 +68,7 @@ int HookedNewEvent(WPARAM hContact, LPARAM lParam) //get DBEVENTINFO without pBlob DBEVENTINFO dbe = { sizeof(dbe) }; - db_event_get((HANDLE)lParam, &dbe); + db_event_get(hDbEvent, &dbe); //do not show popups for sub-contacts if (hContact && db_mc_isSub(hContact)) @@ -103,9 +103,9 @@ int HookedNewEvent(WPARAM hContact, LPARAM lParam) //is another popup for this contact already present? -> merge message popups if enabled if (dbe.eventType == EVENTTYPE_MESSAGE && (pluginOptions.bMergePopup && NumberPopupData(hContact, EVENTTYPE_MESSAGE) != -1)) - PopupUpdate(hContact, (HANDLE)lParam); + PopupUpdate(hContact, hDbEvent); else - PopupShow(&pluginOptions, hContact, (HANDLE)lParam, (UINT)dbe.eventType); + PopupShow(&pluginOptions, hContact, hDbEvent, (UINT)dbe.eventType); return 0; } -- cgit v1.2.3