mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 21:03:54 +08:00
Integrated fixes from 1.0 branch.
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
// CArchLogWindows
|
||||
//
|
||||
|
||||
CArchLogWindows::CArchLogWindows()
|
||||
CArchLogWindows::CArchLogWindows() : m_eventLog(NULL)
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
@@ -33,7 +33,7 @@ CArchLogWindows::~CArchLogWindows()
|
||||
void
|
||||
CArchLogWindows::openLog(const char* name)
|
||||
{
|
||||
if (!CArchMiscWindows::isWindows95Family()) {
|
||||
if (m_eventLog == NULL && !CArchMiscWindows::isWindows95Family()) {
|
||||
m_eventLog = RegisterEventSource(NULL, name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user