diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_core/src/logger.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mir_core/src/logger.cpp b/src/mir_core/src/logger.cpp index 4c4b37e54a..6cdaad3e11 100644 --- a/src/mir_core/src/logger.cpp +++ b/src/mir_core/src/logger.cpp @@ -37,15 +37,12 @@ struct Logger m_out(NULL),
m_lastwrite(0)
{
- InitializeCriticalSection(&m_cs);
}
~Logger()
{
if (m_out)
fclose(m_out);
-
- DeleteCriticalSection(&m_cs);
}
int m_signature;
@@ -54,8 +51,7 @@ struct Logger FILE *m_out;
__int64 m_lastwrite;
unsigned m_options;
-
- CRITICAL_SECTION m_cs;
+ mir_cs m_cs;
};
static int CompareLoggers(const Logger *p1, const Logger *p2)
|