From c965014a17edf2a4f771a498415917abce078223 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Wed, 22 Feb 2012 15:06:19 +0000 Subject: [PATCH] Minor change. --- Plugins/PluginNowPlaying/PlayerWMP.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Plugins/PluginNowPlaying/PlayerWMP.cpp b/Plugins/PluginNowPlaying/PlayerWMP.cpp index 2b10bb74..16448e61 100644 --- a/Plugins/PluginNowPlaying/PlayerWMP.cpp +++ b/Plugins/PluginNowPlaying/PlayerWMP.cpp @@ -364,16 +364,16 @@ void CPlayerWMP::UpdateData() if (spMedia) { BSTR val; - spMedia->getItemInfo(L"Artist", &val); + spMedia->getItemInfo(CComBSTR(L"Artist"), &val); m_Artist = val; - spMedia->getItemInfo(L"Title", &val); + spMedia->getItemInfo(CComBSTR(L"Title"), &val); m_Title = val; - spMedia->getItemInfo(L"Album", &val); + spMedia->getItemInfo(CComBSTR(L"Album"), &val); m_Album = val; - spMedia->getItemInfo(L"UserRating", &val); + spMedia->getItemInfo(CComBSTR(L"UserRating"), &val); int rating = _wtoi(val); if (rating > 75) @@ -414,7 +414,7 @@ void CPlayerWMP::UpdateData() // TODO: Fix temp solution if (m_Measures & MEASURE_COVER || m_InstanceCount == 0) { - spMedia->getItemInfo(L"WM/WMCollectionID", &val); + spMedia->getItemInfo(CComBSTR(L"WM/WMCollectionID"), &val); targetPath.resize(targetPath.find_last_of(L'\\') + 1); targetPath += L"AlbumArt_"; targetPath += val; @@ -552,7 +552,7 @@ void CPlayerWMP::SetRating(int rating) break; } - spMedia->setItemInfo(L"UserRating", val); + spMedia->setItemInfo(CComBSTR(L"UserRating"), val); m_Rating = rating; } }