From 68d3fd47bb9b75e65859d14199ffee01f16ac9a7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 10 Feb 2014 20:47:51 +0000 Subject: HCONTACT is not needed anymore git-svn-id: http://svn.miranda-ng.org/main/trunk@8086 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MobileState/src/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/MobileState') diff --git a/plugins/MobileState/src/main.cpp b/plugins/MobileState/src/main.cpp index 745622593a..ef0cd8ddb7 100644 --- a/plugins/MobileState/src/main.cpp +++ b/plugins/MobileState/src/main.cpp @@ -50,7 +50,7 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda return &pluginInfo; } -bool hasMobileClient(HCONTACT hContact, LPARAM lParam) +bool hasMobileClient(MCONTACT hContact, LPARAM lParam) { char *proto = GetContactProto(hContact); @@ -71,10 +71,10 @@ int ExtraIconsApply(WPARAM wParam, LPARAM lParam) if (wParam == NULL) return 0; - if (hasMobileClient((HCONTACT)wParam, lParam)) - ExtraIcon_SetIcon(hExtraIcon, (HCONTACT)wParam, "mobile_icon"); + if (hasMobileClient((MCONTACT)wParam, lParam)) + ExtraIcon_SetIcon(hExtraIcon, (MCONTACT)wParam, "mobile_icon"); else - ExtraIcon_Clear(hExtraIcon, (HCONTACT)wParam); + ExtraIcon_Clear(hExtraIcon, (MCONTACT)wParam); return 0; } @@ -82,7 +82,7 @@ int ExtraIconsApply(WPARAM wParam, LPARAM lParam) int onContactSettingChanged(WPARAM wParam,LPARAM lParam) { DBCONTACTWRITESETTING *cws=(DBCONTACTWRITESETTING*)lParam; - char *proto = GetContactProto((HCONTACT)wParam); + char *proto = GetContactProto((MCONTACT)wParam); if (!proto) return 0; @@ -102,7 +102,7 @@ int onModulesLoaded(WPARAM wParam,LPARAM lParam) hExtraIcon = ExtraIcon_Register("mobilestate", LPGEN("Mobile State"), "mobile_icon"); // Set initial value for all contacts - for (HCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact)) + for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact)) ExtraIconsApply((WPARAM)hContact, 1); return 0; -- cgit v1.2.3