wmic: Use the standard va_list instead of __ms_va_list.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-10-25 11:03:00 +02:00
parent acefbcf6c9
commit 789ba0fe41
1 changed files with 3 additions and 3 deletions

View File

@ -95,14 +95,14 @@ static WCHAR *find_prop( IWbemClassObject *class, const WCHAR *prop )
static int WINAPIV output_string( HANDLE handle, const WCHAR *msg, ... )
{
__ms_va_list va_args;
va_list va_args;
int len;
DWORD count;
WCHAR buffer[8192];
__ms_va_start( va_args, msg );
va_start( va_args, msg );
len = vswprintf( buffer, ARRAY_SIZE(buffer), msg, va_args );
__ms_va_end( va_args );
va_end( va_args );
if (!WriteConsoleW( handle, buffer, len, &count, NULL ))
WriteFile( handle, buffer, len * sizeof(WCHAR), &count, FALSE );