summaryrefslogtreecommitdiff
path: root/plugins/Watrack_MPD
diff options
context:
space:
mode:
authorAlexander Gluzsky <sss123next@list.ru>2014-11-14 12:50:46 +0000
committerAlexander Gluzsky <sss123next@list.ru>2014-11-14 12:50:46 +0000
commit6b891ad943757c1adf93123a5835bbf6e6596a0b (patch)
tree0cdbb79074c466357fb5e7014b68cd68ba844588 /plugins/Watrack_MPD
parent0374d43c31c2ccb2cfa472c4df1a72d496a15305 (diff)
watrack_mpd:
rest of allocation fixes fixes for ansi build git-svn-id: http://svn.miranda-ng.org/main/trunk@10988 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack_MPD')
-rwxr-xr-xplugins/Watrack_MPD/src/main.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Watrack_MPD/src/main.cpp b/plugins/Watrack_MPD/src/main.cpp
index 7b389aba76..01496d9f06 100755
--- a/plugins/Watrack_MPD/src/main.cpp
+++ b/plugins/Watrack_MPD/src/main.cpp
@@ -1,4 +1,4 @@
-// Copyright © 2008 sss, chaos.persei
+// Copyright � 2008 sss, chaos.persei
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
@@ -124,17 +124,17 @@ int Parser()
tmp[i] = ptr[i];
tmp[i] = '\0';
strcpy(ver, tmp);
- SongInfo.txtver = (TCHAR*)mir_utf8decodeW(tmp);
+ SongInfo.txtver = mir_utf8decodeT(tmp);
}
else
- SongInfo.txtver = (TCHAR*)mir_utf8decodeW(ver);
+ SongInfo.txtver = mir_utf8decodeT(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 = (TCHAR*)mir_utf8decodeW(tmp);
+ SongInfo.mfile = mir_utf8decodeT(tmp);
}
else
SongInfo.mfile = mir_tstrdup(_T(""));
@@ -164,7 +164,7 @@ int Parser()
for(i = 0; ((ptr[i] != '\n') && (ptr[i] != '\0')); i++)
tmp[i] = ptr[i];
tmp[i] = '\0';
- SongInfo.title = (TCHAR*)mir_utf8decodeW(tmp);
+ SongInfo.title = mir_utf8decodeT(tmp);
}
else
SongInfo.title = mir_tstrdup(_T("Unknown track"));
@@ -174,7 +174,7 @@ int Parser()
for(i = 0; ((ptr[i] != '\n') && (ptr[i] != '\0')); i++)
tmp[i] = ptr[i];
tmp[i] = '\0';
- SongInfo.artist = (TCHAR*)mir_utf8decodeW(tmp);
+ SongInfo.artist = mir_utf8decodeT(tmp);
}
else
SongInfo.artist = mir_tstrdup(_T("Unknown artist"));
@@ -184,7 +184,7 @@ int Parser()
for(i = 0; ((ptr[i] != '\n') && (ptr[i] != '\0')); i++)
tmp[i] = ptr[i];
tmp[i] = '\0';
- SongInfo.genre = (TCHAR*)mir_utf8decodeW(tmp);
+ SongInfo.genre = mir_utf8decodeT(tmp);
}
else
SongInfo.genre = mir_tstrdup(_T("Unknown genre"));
@@ -194,7 +194,7 @@ int Parser()
for(i = 0; ((ptr[i] != '\n') && (ptr[i] != '\0')); i++)
tmp[i] = ptr[i];
tmp[i] = '\0';
- SongInfo.album = (TCHAR*)mir_utf8decodeW(tmp);
+ SongInfo.album = mir_utf8decodeT(tmp);
}
else
SongInfo.album = mir_tstrdup(_T("Unknown album"));
@@ -204,7 +204,7 @@ int Parser()
for(i = 0; ((ptr[i] != '\n') && (ptr[i] != '\0')); i++)
tmp[i] = ptr[i];
tmp[i] = '\0';
- SongInfo.year = (TCHAR*)mir_utf8decodeW(tmp);
+ SongInfo.year = mir_utf8decodeT(tmp);
}
else
SongInfo.year = mir_tstrdup(_T("Unknown year"));