mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Script: Fixed that SKIN:ParseFormula didn't work with numbers
NowPlaying.dll: Fixed a few TagLib memory leaks.
This commit is contained in:
@ -106,13 +106,14 @@ static int ParseFormula(lua_State* L)
|
||||
std::wstring strTmp = LuaManager::ToWide(L, 2);
|
||||
|
||||
double result;
|
||||
if (self->GetParser().ParseFormula(strTmp, &result))
|
||||
if (!self->GetParser().ParseFormula(strTmp, &result))
|
||||
{
|
||||
lua_pushnumber(L, result);
|
||||
return 1;
|
||||
result = lua_tonumber(L, 2);
|
||||
}
|
||||
|
||||
return 0;
|
||||
lua_pushnumber(L, result);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int MoveWindow(lua_State* L)
|
||||
|
Reference in New Issue
Block a user