summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-23 21:55:24 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-23 21:55:24 +0000
commitddaf3afe490e3a3f7bbd45cdb796efdc007e81f7 (patch)
tree8ebe4d1c6373bd07fafb28825ed1488478f28d6f /src
parent1e089e1f91c7280712d03947d60c0d922a414c34 (diff)
minus critical section
git-svn-id: http://svn.miranda-ng.org/main/trunk@13807 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/mir_core/src/logger.cpp6
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)