mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
NowPlayingPlugin:
- Minor improvements to CAD interface - Fixed: TITLE was empty when listening to radio stations with Winamp - Fixed: Metadata may not be updated until full refresh after closing one of multiple NowPlaying based skins
This commit is contained in:
@ -89,7 +89,7 @@ bool CPlayerWinamp::CheckWindow()
|
||||
{
|
||||
DWORD pID;
|
||||
GetWindowThreadProcessId(m_Window, &pID);
|
||||
m_WinampHandle = OpenProcess(PROCESS_VM_READ, false, pID);
|
||||
m_WinampHandle = OpenProcess(PROCESS_VM_READ, FALSE, pID);
|
||||
|
||||
if (m_WinampHandle)
|
||||
{
|
||||
@ -200,7 +200,6 @@ void CPlayerWinamp::UpdateData()
|
||||
|
||||
std::wstring title = wBuffer;
|
||||
std::wstring::size_type pos = title.find(L". ");
|
||||
|
||||
if (pos != std::wstring::npos && pos < 5)
|
||||
{
|
||||
pos += 2; // Skip ". "
|
||||
@ -217,8 +216,9 @@ void CPlayerWinamp::UpdateData()
|
||||
}
|
||||
else
|
||||
{
|
||||
ClearData();
|
||||
return;
|
||||
m_Title = title;
|
||||
m_Artist.clear();
|
||||
m_Album.clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user