icinfo: Use the standard va_list instead of __ms_va_list.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2f680d281b
commit
bac8aff293
|
@ -26,14 +26,14 @@ static int WINAPIV mywprintf(const WCHAR *format, ...)
|
||||||
{
|
{
|
||||||
static char output_bufA[65536];
|
static char output_bufA[65536];
|
||||||
static WCHAR output_bufW[sizeof(output_bufA)];
|
static WCHAR output_bufW[sizeof(output_bufA)];
|
||||||
__ms_va_list parms;
|
va_list parms;
|
||||||
DWORD nOut;
|
DWORD nOut;
|
||||||
BOOL res = FALSE;
|
BOOL res = FALSE;
|
||||||
HANDLE hout = GetStdHandle(STD_OUTPUT_HANDLE);
|
HANDLE hout = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||||
|
|
||||||
__ms_va_start(parms, format);
|
va_start(parms, format);
|
||||||
vswprintf(output_bufW, ARRAY_SIZE(output_bufW), format, parms);
|
vswprintf(output_bufW, ARRAY_SIZE(output_bufW), format, parms);
|
||||||
__ms_va_end(parms);
|
va_end(parms);
|
||||||
|
|
||||||
/* Try to write as unicode whenever we think it's a console */
|
/* Try to write as unicode whenever we think it's a console */
|
||||||
if (((DWORD_PTR)hout & 3) == 3)
|
if (((DWORD_PTR)hout & 3) == 3)
|
||||||
|
|
Loading…
Reference in New Issue