From 7c4d37c907ad4fabe55d4bc2b115604b346c547a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 29 Dec 2017 17:40:44 +0300 Subject: small fix --- src/mir_app/src/netliblog.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/mir_app') diff --git a/src/mir_app/src/netliblog.cpp b/src/mir_app/src/netliblog.cpp index 0e34498d99..8d2fea89d5 100644 --- a/src/mir_app/src/netliblog.cpp +++ b/src/mir_app/src/netliblog.cpp @@ -358,9 +358,8 @@ void PROTO_INTERFACE::debugLogA(const char *szFormat, ...) va_list args; va_start(args, szFormat); int res = _vsnprintf(buf, _countof(buf), szFormat, args); - va_end(args); - NetlibLog_Worker(m_hNetlibUser, (res != -1) ? buf : CMStringA().FormatV(szFormat, args), 0); + va_end(args); } void PROTO_INTERFACE::debugLogW(const wchar_t *wszFormat, ...) @@ -369,9 +368,8 @@ void PROTO_INTERFACE::debugLogW(const wchar_t *wszFormat, ...) va_list args; va_start(args, wszFormat); int res = _vsnwprintf(buf, _countof(buf), wszFormat, args); - va_end(args); - NetlibLog_Worker(m_hNetlibUser, ptrA(Utf8EncodeW((res != -1) ? buf : CMStringW().FormatV(wszFormat, args))), 0); + va_end(args); } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3