From 6b891ad943757c1adf93123a5835bbf6e6596a0b Mon Sep 17 00:00:00 2001 From: Alexander Gluzsky Date: Fri, 14 Nov 2014 12:50:46 +0000 Subject: 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 --- plugins/Watrack_MPD/src/main.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins/Watrack_MPD') 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")); -- cgit v1.2.3