From 7c09acb8895acd2cf01c4a89fbbb9553b6bf9632 Mon Sep 17 00:00:00 2001 From: spx Date: Tue, 4 Jan 2011 15:34:19 +0000 Subject: [PATCH] Fixed crash when If***Action contains !RainmeterUpdate. (It caused an infinite loop.) --- Library/Measure.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Measure.cpp b/Library/Measure.cpp index 519c1273..2da2f5a5 100644 --- a/Library/Measure.cpp +++ b/Library/Measure.cpp @@ -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