# HG changeset patch # User Grumpy7 # Date 1378606270 -7200 # Node ID 1e5086f7d401ecb1928f8ab3b5e14af56ff38ae7 # Parent 58420268d87dc942823dfc42a759dba57eddbd15 undoing 1481 diff -r 58420268d87d -r 1e5086f7d401 Log.cpp --- a/Log.cpp Sun Sep 08 04:10:22 2013 +0200 +++ b/Log.cpp Sun Sep 08 04:11:10 2013 +0200 @@ -19,14 +19,16 @@ return; va_list args; + wchar_t pMsg[8192]; va_start(args, pFormat); - vwprintf_s(pFormat, args); + vswprintf_s(pMsg, 8192, pFormat, args); va_end(args); - puts("\r\n"); + DWORD w; + WriteConsole(hStdOut, pMsg, lstrlenW(pMsg), &w, nullptr); + WriteConsole(hStdOut, L"\r\n", 2, &w, nullptr); } - //----- (004BE386) -------------------------------------------------------- void __fastcall log_error(const char *pMessage) {