summaryrefslogtreecommitdiff
path: root/plugins/ListeningTo/src/players
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2012-12-15 11:15:43 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2012-12-15 11:15:43 +0000
commit680b28203ea96f8fa0083de4ddbea15d45c23904 (patch)
tree1985c9c22a7217b058cedbbd213689e59c81c8bd /plugins/ListeningTo/src/players
parent3d82665d7e66d63bd0876d1838b445dfb0df8df7 (diff)
ListeningTo:
-Use ANSI status message API if Unicode API not available -minor refactoring git-svn-id: http://svn.miranda-ng.org/main/trunk@2745 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ListeningTo/src/players')
-rw-r--r--plugins/ListeningTo/src/players/mradio.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ListeningTo/src/players/mradio.cpp b/plugins/ListeningTo/src/players/mradio.cpp
index 1916d491ab..1ef00fb51a 100644
--- a/plugins/ListeningTo/src/players/mradio.cpp
+++ b/plugins/ListeningTo/src/players/mradio.cpp
@@ -46,7 +46,7 @@ int MRadio::GetData()
{
if (strcmp("mRadio", proto) == 0)
{
- WORD status = DBGetContactSettingWord(hContact, proto, "Status", ID_STATUS_OFFLINE);
+ WORD status = db_get_w(hContact, proto, "Status", ID_STATUS_OFFLINE);
if (status == ID_STATUS_ONLINE)
break;
}
@@ -58,7 +58,7 @@ int MRadio::GetData()
if (hContact)
{
DBVARIANT dbv = {0};
- if (!DBGetContactSettingString(hContact, "mRadio", "Nick", &dbv))
+ if (!db_get_s(hContact, "mRadio", "Nick", &dbv))
{
listening_info.cbSize = sizeof(listening_info);
listening_info.dwFlags = LTI_TCHAR;
@@ -66,7 +66,7 @@ int MRadio::GetData()
listening_info.ptszType = mir_tstrdup(_T("Radio"));
listening_info.ptszTitle = mir_a2t(dbv.pszVal);
- DBFreeVariant(&dbv);
+ db_free(&dbv);
return 1;
}
}