summaryrefslogtreecommitdiff
path: root/plugins/CountryFlags/src/extraimg.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-02-16 12:44:38 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-02-16 12:44:38 +0000
commit907116c051e995a6a593743c7a6dfdece747c2c0 (patch)
tree59d079cb818382ae09840da99e3be1b58abffff5 /plugins/CountryFlags/src/extraimg.cpp
parentbec34b3f632d179368f00b49e984ac576f14fad4 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@8133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CountryFlags/src/extraimg.cpp')
-rw-r--r--plugins/CountryFlags/src/extraimg.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/CountryFlags/src/extraimg.cpp b/plugins/CountryFlags/src/extraimg.cpp
index 1ada5a8372..d58e49de07 100644
--- a/plugins/CountryFlags/src/extraimg.cpp
+++ b/plugins/CountryFlags/src/extraimg.cpp
@@ -24,18 +24,18 @@ static HANDLE hServiceDetectContactOrigin;
/************************* Services *******************************/
-static INT_PTR ServiceDetectContactOriginCountry(WPARAM wParam,LPARAM lParam)
+static INT_PTR ServiceDetectContactOriginCountry(WPARAM hContact, LPARAM lParam)
{
int countryNumber = 0xFFFF;
- char *pszProto = GetContactProto(wParam);
+ char *pszProto = GetContactProto(hContact);
/* ip detect */
if (bUseIpToCountry)
- countryNumber = ServiceIpToCountry(db_get_dw(wParam,pszProto,"RealIP",0),0);
+ countryNumber = ServiceIpToCountry(db_get_dw(hContact, pszProto, "RealIP", 0), 0);
/* fallback */
if (countryNumber == 0xFFFF)
- countryNumber = db_get_w(wParam,pszProto,"Country",0);
+ countryNumber = db_get_w(hContact, pszProto, "Country", 0);
if (countryNumber == 0 || countryNumber == 0xFFFF)
- countryNumber = db_get_w(wParam,pszProto,"CompanyCountry",0);
+ countryNumber = db_get_w(hContact, pszProto, "CompanyCountry", 0);
return (countryNumber == 0) ? 0xFFFF : countryNumber;
}