icinfo: vsnprintfw takes characters as buffer size not bytes.

Signed-off-by: Marcus Meissner <meissner@suse.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Marcus Meissner 2018-06-26 16:14:33 +02:00 committed by Alexandre Julliard
parent 75236a636b
commit 85f1a79be8
1 changed files with 2 additions and 2 deletions

View File

@ -26,14 +26,14 @@
static int mywprintf(const WCHAR *format, ...)
{
static char output_bufA[65536];
static WCHAR output_bufW[sizeof(output_bufA) / sizeof(WCHAR)];
static WCHAR output_bufW[sizeof(output_bufA)];
va_list parms;
DWORD nOut;
BOOL res = FALSE;
HANDLE hout = GetStdHandle(STD_OUTPUT_HANDLE);
va_start(parms, format);
vsnprintfW(output_bufW, sizeof(output_bufW), format, parms);
vsnprintfW(output_bufW, sizeof(output_bufW)/sizeof(output_bufW[0]), format, parms);
va_end(parms);
/* Try to write as unicode whenever we think it's a console */