comparison Log.cpp @ 1566:1e5086f7d401

undoing 1481
author Grumpy7
date Sun, 08 Sep 2013 04:11:10 +0200
parents 0356a84be1cf
children 56cc81b1ed49
comparison
equal deleted inserted replaced
1565:58420268d87d 1566:1e5086f7d401
17 { 17 {
18 if (!hStdOut) 18 if (!hStdOut)
19 return; 19 return;
20 20
21 va_list args; 21 va_list args;
22 wchar_t pMsg[8192];
22 23
23 va_start(args, pFormat); 24 va_start(args, pFormat);
24 vwprintf_s(pFormat, args); 25 vswprintf_s(pMsg, 8192, pFormat, args);
25 va_end(args); 26 va_end(args);
26 puts("\r\n");
27 27
28 DWORD w;
29 WriteConsole(hStdOut, pMsg, lstrlenW(pMsg), &w, nullptr);
30 WriteConsole(hStdOut, L"\r\n", 2, &w, nullptr);
28 } 31 }
29
30 //----- (004BE386) -------------------------------------------------------- 32 //----- (004BE386) --------------------------------------------------------
31 void __fastcall log_error(const char *pMessage) 33 void __fastcall log_error(const char *pMessage)
32 { 34 {
33 const char *v1; // edi@1 35 const char *v1; // edi@1
34 FILE *f; // eax@1 36 FILE *f; // eax@1