summaryrefslogtreecommitdiff
path: root/plugins/ListeningTo/src/players
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ListeningTo/src/players')
-rw-r--r--plugins/ListeningTo/src/players/generic.cpp12
-rw-r--r--plugins/ListeningTo/src/players/wmp.cpp6
2 files changed, 9 insertions, 9 deletions
diff --git a/plugins/ListeningTo/src/players/generic.cpp b/plugins/ListeningTo/src/players/generic.cpp
index 62582ab7bc..ebbb1ff2a5 100644
--- a/plugins/ListeningTo/src/players/generic.cpp
+++ b/plugins/ListeningTo/src/players/generic.cpp
@@ -85,7 +85,7 @@ GenericPlayer::GenericPlayer()
RegisterClass(&wc);
- hWnd = CreateWindow(MIRANDA_WINDOWCLASS, _T("Miranda ListeningTo receiver"),
+ hWnd = CreateWindow(MIRANDA_WINDOWCLASS, LPGENT("Miranda ListeningTo receiver"),
0, 0, 0, 0, 0, NULL, NULL, hInst, NULL);
}
@@ -134,14 +134,14 @@ void GenericPlayer::ProcessReceived()
int pCount = 0;
WCHAR *p = received;
do {
- *p1 = L'\0';
+ *p1 = _T('\0');
parts[pCount] = p;
pCount ++;
p = p1 + 2;
- p1 = wcsstr(p, L"\\0");
+ p1 = wcsstr(p, _T("\\0"));
} while( p1 != NULL && pCount < 10 );
if (p1 != NULL)
- *p1 = L'\0';
+ *p1 = _T('\0');
parts[pCount] = p;
if (pCount < 5)
@@ -186,7 +186,7 @@ void GenericPlayer::ProcessReceived()
li->cbSize = sizeof(listening_info);
li->dwFlags = LTI_TCHAR;
- li->ptszType = U2TD(parts[2], L"Music");
+ li->ptszType = U2TD(parts[2], _T("Music"));
li->ptszTitle = U2T(parts[3]);
li->ptszArtist = U2T(parts[4]);
li->ptszAlbum = U2T(parts[5]);
@@ -255,7 +255,7 @@ void GenericPlayer::NewData(const WCHAR *data, size_t len)
{
// m_log(_T("NewData"), _T("Processing"));
- if (data[0] == L'\0')
+ if (data[0] == _T('\0'))
{
// m_log(_T("NewData"), _T("ERROR: Text is empty"));
return;
diff --git a/plugins/ListeningTo/src/players/wmp.cpp b/plugins/ListeningTo/src/players/wmp.cpp
index a636a45119..5e154576ed 100644
--- a/plugins/ListeningTo/src/players/wmp.cpp
+++ b/plugins/ListeningTo/src/players/wmp.cpp
@@ -37,7 +37,7 @@ WindowsMediaPlayer *singleton = NULL;
WindowsMediaPlayer::WindowsMediaPlayer()
{
name = _T("WindowsMediaPlayer");
- received[0] = L'\0';
+ received[0] = _T('\0');
singleton = this;
WNDCLASS wc = {0};
@@ -47,7 +47,7 @@ WindowsMediaPlayer::WindowsMediaPlayer()
RegisterClass(&wc);
- hWnd = CreateWindow(WMP_WINDOWCLASS, _T("Miranda ListeningTo WMP receiver"),
+ hWnd = CreateWindow(WMP_WINDOWCLASS, LPGENT("Miranda ListeningTo WMP receiver"),
0, 0, 0, 0, 0, NULL, NULL, hInst, NULL);
}
@@ -152,7 +152,7 @@ void WindowsMediaPlayer::NewData(const WCHAR *data, size_t len)
if (wcsncmp(received, data, len) != 0)
{
wcsncpy(received, data, len);
- received[len] = L'\0';
+ received[len] = _T('\0');
/*
m_log(_T("ReceiverWndProc"), _T("WMP : New data: [%d] %s"), len, received);