NowPlayingPlugin: Minor tweaks.

This commit is contained in:
Birunthan Mohanathas
2011-05-31 13:15:53 +00:00
parent 3268c774d2
commit 72f5d55090
5 changed files with 44 additions and 52 deletions

View File

@ -78,7 +78,7 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id)
UINT maxValue = 0;
MeasureData* data = new MeasureData;
// Read settings from the ini-file
LPCTSTR str = ReadConfigString(section, L"PlayerName", NULL);
if (str)
@ -88,8 +88,8 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id)
int len = wcslen(str) - 2;
if (len > 0)
{
MeasureMap::iterator it;
for (it = g_Values.begin(); it != g_Values.end(); ++it)
MeasureMap::iterator it = g_Values.begin();
for ( ; it != g_Values.end(); ++it)
{
if (wcsncmp(&str[1], it->second->section.c_str(), len) == 0 &&
wcscmp(iniFile, it->second->iniFile.c_str()) == 0)