summaryrefslogtreecommitdiff
path: root/plugins/ListeningTo/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-25 12:54:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-25 12:54:45 +0000
commitbd8a04455d9c991c15df2287e091abe4ba054efb (patch)
tree6af5485d60feef741669eb545a6378e7c209ab59 /plugins/ListeningTo/src
parent7fdce14cd488e25e8e32e34098fbe9f5cb3021b7 (diff)
typed stub for MS_PROTO_GETCONTACTBASEPROTO
git-svn-id: http://svn.miranda-ng.org/main/trunk@2480 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ListeningTo/src')
-rw-r--r--plugins/ListeningTo/src/listeningto.cpp4
-rw-r--r--plugins/ListeningTo/src/players/mradio.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ListeningTo/src/listeningto.cpp b/plugins/ListeningTo/src/listeningto.cpp
index 931270ff1b..cea9ef9566 100644
--- a/plugins/ListeningTo/src/listeningto.cpp
+++ b/plugins/ListeningTo/src/listeningto.cpp
@@ -314,7 +314,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam)
HANDLE hContact = db_find_first();
while (hContact != NULL) {
- char *proto = (char *) CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM) hContact, 0);
+ char *proto = GetContactProto(hContact);
if (proto != NULL) {
DBVARIANT dbv;
if (!DBGetContactSettingTString(hContact, proto, "ListeningTo", &dbv)) {
@@ -985,7 +985,7 @@ int SettingChanged(WPARAM wParam,LPARAM lParam)
if (strcmp(cws->szSetting, "ListeningTo") != 0)
return 0;
- char *proto = (char *) CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM) hContact, 0);
+ char *proto = GetContactProto(hContact);
if (proto == NULL)
return 0;
diff --git a/plugins/ListeningTo/src/players/mradio.cpp b/plugins/ListeningTo/src/players/mradio.cpp
index 84fdd61b95..1916d491ab 100644
--- a/plugins/ListeningTo/src/players/mradio.cpp
+++ b/plugins/ListeningTo/src/players/mradio.cpp
@@ -41,7 +41,7 @@ int MRadio::GetData()
hContact = db_find_first();
while (hContact != NULL)
{
- char *proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
+ char *proto = GetContactProto(hContact);
if (proto)
{
if (strcmp("mRadio", proto) == 0)