After discussion with Jeroen Massar, here's a patch (mostly his)
[u/mdw/putty] / windows / wincons.c
index 7b763a2..288410c 100644 (file)
@@ -294,8 +294,7 @@ void console_provide_logctx(void *logctx)
 
 void logevent(void *frontend, const char *string)
 {
-    if (console_logctx)
-       log_eventlog(console_logctx, string);
+    log_eventlog(console_logctx, string);
 }
 
 static void console_data_untrusted(HANDLE hout, const char *data, int len)