summaryrefslogtreecommitdiff
path: root/plugins/ListeningTo
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ListeningTo')
-rw-r--r--plugins/ListeningTo/src/listeningto.cpp2
-rw-r--r--plugins/ListeningTo/src/music.cpp18
-rw-r--r--plugins/ListeningTo/src/options.cpp6
3 files changed, 13 insertions, 13 deletions
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_function<const ProtocolInfo, const ProtocolInfo
{
bool operator()(const ProtocolInfo &one, const ProtocolInfo &two) const
{
- return lstrcmp(one.account, two.account) < 0;
+ return mir_tstrcmp(one.account, two.account) < 0;
}
};
diff --git a/plugins/ListeningTo/src/music.cpp b/plugins/ListeningTo/src/music.cpp
index 261a2a6584..b1c7e9b1de 100644
--- a/plugins/ListeningTo/src/music.cpp
+++ b/plugins/ListeningTo/src/music.cpp
@@ -88,15 +88,15 @@ BOOL Equals(const LISTENINGTOINFO *lti1, const LISTENINGTOINFO *lti2)
if (lti1->cbSize != 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;
}