summaryrefslogtreecommitdiff
path: root/plugins/Watrack_MPD/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-27 14:23:31 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-27 14:23:31 +0000
commit2f261839b60692e33d0e160344d0d636d49c90ba (patch)
tree187921722698b681d29df3f6e60fb18394a5e9d5 /plugins/Watrack_MPD/src/main.cpp
parent2e931a0b2780587d85f3902468c935f5adba70c8 (diff)
less TCHARs
git-svn-id: http://svn.miranda-ng.org/main/trunk@17138 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack_MPD/src/main.cpp')
-rwxr-xr-xplugins/Watrack_MPD/src/main.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/plugins/Watrack_MPD/src/main.cpp b/plugins/Watrack_MPD/src/main.cpp
index 079718a0f9..a4ca0c1943 100755
--- a/plugins/Watrack_MPD/src/main.cpp
+++ b/plugins/Watrack_MPD/src/main.cpp
@@ -75,7 +75,7 @@ int Parser()
if(!Connected)
{
char tmp[128];
- char *tmp2 = mir_t2a(gbPassword);
+ char *tmp2 = mir_u2a(gbPassword);
recvResult = CallService(MS_NETLIB_GETMOREPACKETS,(WPARAM)ghPacketReciever, (LPARAM)&nlpr);
if(recvResult == SOCKET_ERROR)
{
@@ -124,20 +124,20 @@ int Parser()
tmp[i] = ptr[i];
tmp[i] = '\0';
strncpy_s(ver, tmp, _TRUNCATE);
- SongInfo.txtver = mir_utf8decodeT(tmp);
+ SongInfo.txtver = mir_utf8decodeW(tmp);
}
else
- SongInfo.txtver = mir_utf8decodeT(ver);
+ SongInfo.txtver = mir_utf8decodeW(ver);
if(ptr = strstr(buf, "file:"))
{
ptr = &ptr[6];
for(i = 0; ((ptr[i] != '\n') && (ptr[i] != '\0')); i++)
tmp[i] = ptr[i];
tmp[i] = '\0';
- SongInfo.mfile = mir_utf8decodeT(tmp);
+ SongInfo.mfile = mir_utf8decodeW(tmp);
}
else
- SongInfo.mfile = mir_tstrdup(L"");
+ SongInfo.mfile = mir_wstrdup(L"");
if(ptr = strstr(buf, "Time:"))
{
ptr = &ptr[6];
@@ -164,50 +164,50 @@ int Parser()
for(i = 0; ((ptr[i] != '\n') && (ptr[i] != '\0')); i++)
tmp[i] = ptr[i];
tmp[i] = '\0';
- SongInfo.title = mir_utf8decodeT(tmp);
+ SongInfo.title = mir_utf8decodeW(tmp);
}
else
- SongInfo.title = mir_tstrdup(L"Unknown track");
+ SongInfo.title = mir_wstrdup(L"Unknown track");
if(ptr = strstr(buf, "Artist:"))
{
ptr = &ptr[8];
for(i = 0; ((ptr[i] != '\n') && (ptr[i] != '\0')); i++)
tmp[i] = ptr[i];
tmp[i] = '\0';
- SongInfo.artist = mir_utf8decodeT(tmp);
+ SongInfo.artist = mir_utf8decodeW(tmp);
}
else
- SongInfo.artist = mir_tstrdup(L"Unknown artist");
+ SongInfo.artist = mir_wstrdup(L"Unknown artist");
if(ptr = strstr(buf, "Genre:"))
{
ptr = &ptr[7];
for(i = 0; ((ptr[i] != '\n') && (ptr[i] != '\0')); i++)
tmp[i] = ptr[i];
tmp[i] = '\0';
- SongInfo.genre = mir_utf8decodeT(tmp);
+ SongInfo.genre = mir_utf8decodeW(tmp);
}
else
- SongInfo.genre = mir_tstrdup(L"Unknown genre");
+ SongInfo.genre = mir_wstrdup(L"Unknown genre");
if(ptr = strstr(buf, "Album:"))
{
ptr = &ptr[7];
for(i = 0; ((ptr[i] != '\n') && (ptr[i] != '\0')); i++)
tmp[i] = ptr[i];
tmp[i] = '\0';
- SongInfo.album = mir_utf8decodeT(tmp);
+ SongInfo.album = mir_utf8decodeW(tmp);
}
else
- SongInfo.album = mir_tstrdup(L"Unknown album");
+ SongInfo.album = mir_wstrdup(L"Unknown album");
if(ptr = strstr(buf, "Date:"))
{
ptr = &ptr[6];
for(i = 0; ((ptr[i] != '\n') && (ptr[i] != '\0')); i++)
tmp[i] = ptr[i];
tmp[i] = '\0';
- SongInfo.year = mir_utf8decodeT(tmp);
+ SongInfo.year = mir_utf8decodeW(tmp);
}
else
- SongInfo.year = mir_tstrdup(L"Unknown year");
+ SongInfo.year = mir_wstrdup(L"Unknown year");
if(ptr = strstr(buf, "volume:"))
{
ptr = &ptr[8];