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

@ -121,15 +121,16 @@ void CPlayerAIMP::UpdateData()
if (!IsWindow(m_Window))
{
m_Initialized = false;
ClearData();
if (m_FileMap) UnmapViewOfFile(m_FileMap);
if (m_FileMapHandle) CloseHandle(m_FileMapHandle);
}
if (m_LastTitleSize != 0)
else if (m_State != STATE_STOPPED)
{
ClearData(false);
m_LastFileSize = 0;
m_LastTitleSize = 0;
ClearData();
}
// Don't continue if AIMP has quit or is stopped