Fixed mistake.

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

View File

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