From 4deccb229ea1ff75f7353ff68d1a8f07dd720b62 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Tue, 13 Oct 2020 23:54:06 +0200 Subject: [PATCH] add fflush --- src/debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/debug.c b/src/debug.c index 17a07fc..bf23214 100644 --- a/src/debug.c +++ b/src/debug.c @@ -92,6 +92,8 @@ int dbg_printf(const char *fmt, ...) ret = vfprintf(stdout, fmt, args); va_end(args); + fflush(stdout); + LeaveCriticalSection(&cs); return ret;