Fixed that !RainmeterSetVariable and !RainmeterWriteKeyValue are unable to set/write empty value (thanks spx!).

This commit is contained in:
Birunthan Mohanathas
2011-01-27 15:23:15 +00:00
parent c24a3c025f
commit ce614da5f3
2 changed files with 20 additions and 12 deletions

View File

@ -130,7 +130,17 @@ LPCTSTR GetString(UINT id, UINT flags)
*/
void Finalize(HMODULE instance, UINT id)
{
/* Nothing to do here */
std::map<UINT, eMeasureType>::iterator i1 = g_Types.find(id);
if (i1 != g_Types.end())
{
g_Types.erase(i1);
}
std::map<UINT, int>::iterator i2 = g_Indexes.find(id);
if (i2 != g_Indexes.end())
{
g_Indexes.erase(i2);
}
}
/*