mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Changed so that only LOG_ERROR from exceptions cause About Log to open.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user