From 37ebeb06823c28ae15bb79d65c01e09cdb0cb8a4 Mon Sep 17 00:00:00 2001 From: zeromus Date: Wed, 6 Feb 2013 21:59:08 +0000 Subject: [PATCH] win32-dont print garbage in console when initializing --- desmume/src/windows/console.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desmume/src/windows/console.cpp b/desmume/src/windows/console.cpp index 0d20d4694..f2540a9a1 100644 --- a/desmume/src/windows/console.cpp +++ b/desmume/src/windows/console.cpp @@ -135,5 +135,8 @@ void CloseConsole() { void printlog(const char *fmt, ...) { - printf(fmt); + va_list args; + va_start (args, fmt); + vprintf (fmt, args); + va_end (args); }