From d9c98bcdfca6da51a1a82dc6c0dc5996b3b6cd6d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Nov 2014 21:20:14 +0000 Subject: new sorting functions applied git-svn-id: http://svn.miranda-ng.org/main/trunk@11180 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ListeningTo/src/listeningto.cpp | 2 +- plugins/ListeningTo/src/music.cpp | 18 +++++++++--------- plugins/ListeningTo/src/options.cpp | 6 +++--- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'plugins/ListeningTo/src') diff --git a/plugins/ListeningTo/src/listeningto.cpp b/plugins/ListeningTo/src/listeningto.cpp index 9061969c68..9caea5cd99 100644 --- a/plugins/ListeningTo/src/listeningto.cpp +++ b/plugins/ListeningTo/src/listeningto.cpp @@ -174,7 +174,7 @@ struct compareFunc : std::binary_functioncbSize != lti2->cbSize) return FALSE; - return lstrcmpi(lti1->ptszArtist, lti2->ptszArtist) == 0 - && lstrcmpi(lti1->ptszAlbum, lti2->ptszAlbum) == 0 - && lstrcmpi(lti1->ptszTitle, lti2->ptszTitle) == 0 - && lstrcmpi(lti1->ptszTrack, lti2->ptszTrack) == 0 - && lstrcmpi(lti1->ptszYear, lti2->ptszYear) == 0 - && lstrcmpi(lti1->ptszGenre, lti2->ptszGenre) == 0 - && lstrcmpi(lti1->ptszLength, lti2->ptszLength) == 0 - && lstrcmpi(lti1->ptszPlayer, lti2->ptszPlayer) == 0 - && lstrcmpi(lti1->ptszType, lti2->ptszType) == 0; + return mir_tstrcmpi(lti1->ptszArtist, lti2->ptszArtist) == 0 + && mir_tstrcmpi(lti1->ptszAlbum, lti2->ptszAlbum) == 0 + && mir_tstrcmpi(lti1->ptszTitle, lti2->ptszTitle) == 0 + && mir_tstrcmpi(lti1->ptszTrack, lti2->ptszTrack) == 0 + && mir_tstrcmpi(lti1->ptszYear, lti2->ptszYear) == 0 + && mir_tstrcmpi(lti1->ptszGenre, lti2->ptszGenre) == 0 + && mir_tstrcmpi(lti1->ptszLength, lti2->ptszLength) == 0 + && mir_tstrcmpi(lti1->ptszPlayer, lti2->ptszPlayer) == 0 + && mir_tstrcmpi(lti1->ptszType, lti2->ptszType) == 0; } diff --git a/plugins/ListeningTo/src/options.cpp b/plugins/ListeningTo/src/options.cpp index c3ee3a0059..c83109c958 100644 --- a/plugins/ListeningTo/src/options.cpp +++ b/plugins/ListeningTo/src/options.cpp @@ -135,11 +135,11 @@ BOOL IsTypeEnabled(LISTENINGTOINFO *lti) if (lti->dwFlags & LTI_UNICODE) { - if (lstrcmpi(lti->ptszType, LPGENT("Music")) == 0) + if (mir_tstrcmpi(lti->ptszType, LPGENT("Music")) == 0) return opts.enable_music; - if (lstrcmpi(lti->ptszType, LPGENT("Radio")) == 0) + if (mir_tstrcmpi(lti->ptszType, LPGENT("Radio")) == 0) return opts.enable_radio; - if (lstrcmpi(lti->ptszType, LPGENT("Video")) == 0) + if (mir_tstrcmpi(lti->ptszType, LPGENT("Video")) == 0) return opts.enable_video; return opts.enable_others; } -- cgit v1.2.3