From cb839b7ce885cd34087985c6f9fd47b288027d13 Mon Sep 17 00:00:00 2001 From: spx Date: Mon, 13 Dec 2010 10:54:41 +0000 Subject: [PATCH] MeasureScript: Fixed an issue that Rainmeter crashes if either ScriptFile or TableName is not defined. --- Library/MeasureScript.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/MeasureScript.cpp b/Library/MeasureScript.cpp index ba9f30bf..d8453472 100644 --- a/Library/MeasureScript.cpp +++ b/Library/MeasureScript.cpp @@ -232,12 +232,12 @@ void CMeasureScript::ReadConfig(CConfigParser& parser, const WCHAR* section) } else { - LuaManager::LuaLog("%s : TableName missing.", m_ANSIName); + LuaManager::LuaLog("%s : TableName missing.", m_ANSIName.c_str()); } } else { - LuaManager::LuaLog("%s : ScriptFile missing.", m_ANSIName); + LuaManager::LuaLog("%s : ScriptFile missing.", m_ANSIName.c_str()); } }