diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-16 17:42:08 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-16 17:42:08 +0000 |
commit | 5975b2d0903bd5df128d55e20cd27d7c13b4e46c (patch) | |
tree | 6696492511c591fa8bf3b65a64864245caa3e7c2 /protocols/Twitter/Debug.c | |
parent | 8617d7e00546f892c9084f7c382648b23d8bbb63 (diff) |
another portion of "#ifdef Unicode" removal
git-svn-id: http://svn.miranda-ng.org/main/trunk@448 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter/Debug.c')
-rw-r--r-- | protocols/Twitter/Debug.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/Twitter/Debug.c b/protocols/Twitter/Debug.c index cfc5c7fd4f..947df7a536 100644 --- a/protocols/Twitter/Debug.c +++ b/protocols/Twitter/Debug.c @@ -97,13 +97,11 @@ void _TRACE(LPCSTR fmt, ...) TCHAR buf[DEBUG_TRACE_BUF_SIZE + 3] = _T("");
va_list va;
-#ifndef UNICODE
- char* tfmt = fmt;
-#else
+
wchar_t tfmt[DEBUG_TRACE_FMT_SIZE];
size_t tmp = 0;
mbstowcs_s(&tmp, tfmt, SIZEOF(tfmt), fmt, _TRUNCATE);
-#endif
+
va_start(va, fmt);
len = _vsntprintf_s(buf, SIZEOF(buf), _TRUNCATE, tfmt, va);
|