Changed so that only LOG_ERROR from exceptions cause About Log to open.

This commit is contained in:
Birunthan Mohanathas
2011-09-08 17:05:48 +00:00
parent 2e9f063cef
commit 2e128c75be
7 changed files with 35 additions and 20 deletions

View File

@@ -18,8 +18,8 @@
#include "StdAfx.h"
#include "Litestep.h"
#include "Error.h"
#include "Rainmeter.h"
#include "DialogAbout.h"
#include "System.h"
extern CRainmeter* Rainmeter;
@@ -719,6 +719,12 @@ void LogWithArgs(int nLevel, const WCHAR* format, ... )
delete [] buffer;
}
void LogError(CError& error)
{
Log(LOG_ERROR, error.GetString().c_str());
CDialogAbout::ShowAboutLog();
}
void RmNullCRTInvalidParameterHandler(const wchar_t* expression, const wchar_t* function, const wchar_t* file, unsigned int line, uintptr_t pReserved)
{
// Do nothing.