summaryrefslogtreecommitdiff
path: root/plugins/NewXstatusNotify
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-02-10 14:42:51 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-02-10 14:42:51 +0000
commit33953cc6a0fab6a91af293c6838f8a46dd7922da (patch)
tree2dbbe718ad42545bde6c9f7672387827c530550a /plugins/NewXstatusNotify
parente190a7fde521bd6af9ea485cc730f854aaf38e11 (diff)
HCONTACT, part 3
git-svn-id: http://svn.miranda-ng.org/main/trunk@8081 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify')
-rw-r--r--plugins/NewXstatusNotify/src/main.cpp2
-rw-r--r--plugins/NewXstatusNotify/src/popup.cpp2
-rw-r--r--plugins/NewXstatusNotify/src/xstatus.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/NewXstatusNotify/src/main.cpp b/plugins/NewXstatusNotify/src/main.cpp
index 5616832ce7..42a831073a 100644
--- a/plugins/NewXstatusNotify/src/main.cpp
+++ b/plugins/NewXstatusNotify/src/main.cpp
@@ -694,7 +694,7 @@ void BlinkIcon(HCONTACT hContact, char* szProto, WORD status)
cle.cbSize = sizeof(cle);
cle.flags = CLEF_ONLYAFEW | CLEF_TCHAR;
cle.hContact = hContact;
- cle.hDbEvent = hContact;
+ cle.hDbEvent = (HANDLE)hContact;
cle.hIcon = (opt.BlinkIcon_Status ? LoadSkinnedProtoIcon(szProto, status) : LoadSkinnedIcon(SKINICON_OTHER_USERONLINE));
cle.pszService = "UserOnline/Description";
cle.ptszTooltip = stzTooltip;
diff --git a/plugins/NewXstatusNotify/src/popup.cpp b/plugins/NewXstatusNotify/src/popup.cpp
index 2a35c7f8ed..7aba8a569e 100644
--- a/plugins/NewXstatusNotify/src/popup.cpp
+++ b/plugins/NewXstatusNotify/src/popup.cpp
@@ -77,7 +77,7 @@ void QueryAwayMessage(HWND hWnd, PLUGINDATA *pdp)
void PopupAction(HWND hWnd, BYTE action)
{
HCONTACT hContact = PUGetContact(hWnd);
- if (hContact && hContact != INVALID_HANDLE_VALUE) {
+ if (hContact && hContact != (HCONTACT)INVALID_HANDLE_VALUE) {
switch (action) {
case PCA_OPENMESSAGEWND:
CallServiceSync(MS_MSG_SENDMESSAGET, (WPARAM)hContact, 0);
diff --git a/plugins/NewXstatusNotify/src/xstatus.cpp b/plugins/NewXstatusNotify/src/xstatus.cpp
index e1d6313bb1..ed150f927a 100644
--- a/plugins/NewXstatusNotify/src/xstatus.cpp
+++ b/plugins/NewXstatusNotify/src/xstatus.cpp
@@ -449,7 +449,7 @@ int OnWindowEvent(WPARAM wParam, LPARAM lParam)
(templates.LogFlags & NOTIFY_OPENING_ML) &&
(db_get_b(mwed->hContact, MODULE, "EnableLogging", 1) == 1))
{
- mir_forkthread(AddEventThread, mwed->hContact);
+ mir_forkthread(AddEventThread, (void*)mwed->hContact);
}
return 0;