OSDN Git Service

Small synchronization fix.
authorLoRd_MuldeR <mulder2@gmx.de>
Sun, 9 Aug 2015 19:34:31 +0000 (21:34 +0200)
committerLoRd_MuldeR <mulder2@gmx.de>
Sun, 9 Aug 2015 19:34:31 +0000 (21:34 +0200)
src/Terminal_Win32.cpp

index 9f6b604..8731dcb 100644 (file)
@@ -163,6 +163,8 @@ static inline std::filebuf *terminal_connect(FILE *const fs, std::ostream &os)
 
 static void terminal_shutdown(void)
 {
+       MUtils::Internal::CSLocker lock(g_terminal_lock);
+
        if (g_terminal_attached)
        {
                g_fileBuf_stdout.reset();