@@ -3292,9 +3292,7 @@ mg_cry(const struct mg_connection *conn, const char *fmt, ...)
va_end(ap);
buf[sizeof(buf) - 1] = 0;
-#if !defined(_WIN32)
DEBUG_TRACE("mg_cry: %s", buf);
-#endif
if (!conn) {
puts(buf);
@@ -493,6 +493,10 @@ START_TEST(test_mg_vsnprintf)
char buf[16];
int is_trunc;
+#if defined(_WIN32)
+ InitializeCriticalSection(&global_log_file_lock);
+#endif
+
memset(buf, 0, sizeof(buf));
mark_point();