Fixed crash when If***Action contains !RainmeterUpdate. (It caused an infinite loop.)

This commit is contained in:
spx 2011-01-04 15:34:19 +00:00
parent 365206e33a
commit 7c09acb889

View File

@ -357,8 +357,8 @@ bool CMeasure::PreUpdate()
{
if(!m_IfEqualCommited)
{
m_IfEqualCommited = true; // To avoid crashing by !RainmeterUpdate due to infinite loop
Rainmeter->ExecuteCommand(m_IfEqualAction.c_str(), m_MeterWindow);
m_IfEqualCommited = true;
}
}
else
@ -374,8 +374,8 @@ bool CMeasure::PreUpdate()
{
if(!m_IfAboveCommited)
{
m_IfAboveCommited = true; // To avoid crashing by !RainmeterUpdate due to infinite loop
Rainmeter->ExecuteCommand(m_IfAboveAction.c_str(), m_MeterWindow);
m_IfAboveCommited = true;
}
}
else
@ -391,8 +391,8 @@ bool CMeasure::PreUpdate()
{
if(!m_IfBelowCommited)
{
m_IfBelowCommited = true; // To avoid crashing by !RainmeterUpdate due to infinite loop
Rainmeter->ExecuteCommand(m_IfBelowAction.c_str(), m_MeterWindow);
m_IfBelowCommited = true;
}
}
else