NowPlaying.dll: Fixed that SHUFFLE, REPEAT, and VOLUME were not reset on player shutdown

This commit is contained in:
Birunthan Mohanathas
2012-04-18 19:10:43 +03:00
parent 27f33dbe10
commit 7415ed0889
8 changed files with 21 additions and 12 deletions

View File

@ -112,12 +112,13 @@ void CPlayerWinamp::UpdateData()
if (!IsWindow(m_Window))
{
m_Initialized = false;
ClearData();
if (m_WinampHandle) CloseHandle(m_WinampHandle);
}
if (m_State != STATE_STOPPED)
else if (m_State != STATE_STOPPED)
{
ClearData();
ClearData(false);
}
// Don't continue if Winamp has quit or is stopped