Fixed mistake.

This commit is contained in:
Birunthan Mohanathas 2012-02-14 18:05:51 +00:00
parent ac840c1599
commit d20299b87a

View File

@ -333,7 +333,10 @@ void LogInternal(int nLevel, ULONGLONG elapsed, LPCTSTR pszMessage)
message += pszMessage;
message += L'\n';
#ifdef _DEBUG
_RPT0(_CRT_WARN, ConvertToAscii(message.c_str()).c_str());
if (!Rainmeter->GetLogging()) return;
#endif
const WCHAR* logFile = Rainmeter->GetLogFile().c_str();
if (_waccess(logFile, 0) == -1)