diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-01-20 16:15:48 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-01-20 16:15:48 +0000 |
commit | 4e58aa129c384884d3b9863ac62859e75c1a8b4b (patch) | |
tree | 756252bbcf4dea30bee3518d84fd7b6ad12949ee /plugins/ListeningTo/src | |
parent | 80bd2d399778a3f6fc39de826264aba41a24b994 (diff) |
- Another portion of _T replacement (patch from person)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3191 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ListeningTo/src')
-rw-r--r-- | plugins/ListeningTo/src/players/generic.cpp | 12 | ||||
-rw-r--r-- | plugins/ListeningTo/src/players/wmp.cpp | 6 |
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);
|