Made log messages more consistent.

This commit is contained in:
Birunthan Mohanathas
2011-11-09 09:27:06 +00:00
parent f8f31a527e
commit 1e9d424c99
16 changed files with 55 additions and 60 deletions

View File

@ -255,7 +255,7 @@ int CMeterWindow::Initialize(CRainmeter& Rainmeter)
if (err != 0 && ERROR_CLASS_ALREADY_EXISTS != err)
{
throw CError(L"Unable to register class!", __LINE__, __FILE__);
throw CError(L"Unable to register class");
}
}
@ -274,7 +274,7 @@ int CMeterWindow::Initialize(CRainmeter& Rainmeter)
if (m_Window == NULL)
{
throw CError(L"Unable to register window!", __LINE__, __FILE__);
throw CError(L"Unable to register window");
}
setlocale(LC_NUMERIC, "C");
@ -441,13 +441,13 @@ void CMeterWindow::Refresh(bool init, bool all)
{
if (0 == SetTimer(m_Window, TIMER_METER, m_WindowUpdate, NULL))
{
throw CError(L"Unable to set timer!", __LINE__, __FILE__);
throw CError(L"Unable to set timer");
}
}
if (0 == SetTimer(m_Window, TIMER_MOUSE, INTERVAL_MOUSE, NULL)) // Mouse position is checked twice per sec
{
throw CError(L"Unable to set timer!", __LINE__, __FILE__);
throw CError(L"Unable to set timer");
}
m_Rainmeter->SetCurrentParser(NULL);