From ec2b19f0dcbbf40027101e145eb2144813e2d9ef Mon Sep 17 00:00:00 2001 From: spx Date: Thu, 9 Feb 2012 04:14:41 +0000 Subject: [PATCH] CoreTemp: Fixed issue: http://rainmeter.net/forum/viewtopic.php?f=14&t=11257 --- Plugins/PluginCoreTemp/PluginCoreTemp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/PluginCoreTemp/PluginCoreTemp.cpp b/Plugins/PluginCoreTemp/PluginCoreTemp.cpp index 3863175a..75fccdaa 100644 --- a/Plugins/PluginCoreTemp/PluginCoreTemp.cpp +++ b/Plugins/PluginCoreTemp/PluginCoreTemp.cpp @@ -60,9 +60,9 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue) MeasureData* measure = (MeasureData*)data; LPCWSTR value = RmReadString(rm, L"CoreTempType", L"Temperature"); - eMeasureType type = convertStringToMeasureType(value); + measure->type = convertStringToMeasureType(value); - if (type == MeasureTemperature || type == MeasureTjMax || type == MeasureLoad) + if (measure->type == MeasureTemperature || measure->type == MeasureTjMax || measure->type == MeasureLoad) { measure->index = RmReadInt(rm, L"CoreTempIndex", 0); }