Integrated fixes from 1.0 branch.

This commit is contained in:
crs
2003-08-06 21:09:25 +00:00
parent 345de4cd11
commit 2f9cdfd1b2
7 changed files with 34 additions and 11 deletions

View File

@@ -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);
}
}