Fixed mistake 902e734

This commit is contained in:
spx 2012-05-29 20:45:03 -07:00
parent f20170406e
commit 71bde05573

View File

@ -3076,7 +3076,7 @@ void CRainmeter::ChangeSkinIndex(HMENU menu, int index)
void CRainmeter::StartLogging() void CRainmeter::StartLogging()
{ {
// Check if the file exists // Check if the file exists
const WCHAR* logFile = m_LogViewer.c_str(); const WCHAR* logFile = m_LogFile.c_str();
if (_waccess(logFile, 0) == -1) if (_waccess(logFile, 0) == -1)
{ {
// Create log file // Create log file
@ -3109,7 +3109,7 @@ void CRainmeter::StopLogging()
void CRainmeter::ShowLogFile() void CRainmeter::ShowLogFile()
{ {
// Check if the file exists // Check if the file exists
const WCHAR* logFile = m_LogViewer.c_str(); const WCHAR* logFile = m_LogFile.c_str();
if (_waccess(logFile, 0) != -1) if (_waccess(logFile, 0) != -1)
{ {
RunFile(m_LogViewer.c_str(), logFile); RunFile(m_LogViewer.c_str(), logFile);
@ -3119,7 +3119,7 @@ void CRainmeter::ShowLogFile()
void CRainmeter::DeleteLogFile() void CRainmeter::DeleteLogFile()
{ {
// Check if the file exists // Check if the file exists
const WCHAR* logFile = m_LogViewer.c_str(); const WCHAR* logFile = m_LogFile.c_str();
if (_waccess(logFile, 0) != -1) if (_waccess(logFile, 0) != -1)
{ {
std::wstring text = GetFormattedString(ID_STR_LOGFILEDELETE, logFile); std::wstring text = GetFormattedString(ID_STR_LOGFILEDELETE, logFile);