Logger: Fixed regression in 7960dfe

This commit is contained in:
Birunthan Mohanathas 2013-08-04 21:24:06 +03:00
parent 645ce0591d
commit 9c3808ea46

View File

@ -256,6 +256,10 @@ void Logger::LogSectionVF(Logger::Level level, Section* section, const WCHAR* fo
void Logger::LogMeterWindowVF(Logger::Level level, MeterWindow* meterWindow, const WCHAR* format, va_list args) void Logger::LogMeterWindowVF(Logger::Level level, MeterWindow* meterWindow, const WCHAR* format, va_list args)
{ {
const WCHAR* sourceSz = meterWindow ? meterWindow->GetSkinPath().c_str() : L""; std::wstring source;
GetLogger().LogVF(level, sourceSz, format, args); if (meterWindow)
{
source = meterWindow->GetSkinPath().c_str();
}
GetLogger().LogVF(level, source.c_str(), format, args);
} }