Commit 789ba0fe authored by Alexandre Julliard's avatar Alexandre Julliard

wmic: Use the standard va_list instead of __ms_va_list.

parent acefbcf6
...@@ -95,14 +95,14 @@ static WCHAR *find_prop( IWbemClassObject *class, const WCHAR *prop ) ...@@ -95,14 +95,14 @@ static WCHAR *find_prop( IWbemClassObject *class, const WCHAR *prop )
static int WINAPIV output_string( HANDLE handle, const WCHAR *msg, ... ) static int WINAPIV output_string( HANDLE handle, const WCHAR *msg, ... )
{ {
__ms_va_list va_args; va_list va_args;
int len; int len;
DWORD count; DWORD count;
WCHAR buffer[8192]; WCHAR buffer[8192];
__ms_va_start( va_args, msg ); va_start( va_args, msg );
len = vswprintf( buffer, ARRAY_SIZE(buffer), msg, va_args ); 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 )) if (!WriteConsoleW( handle, buffer, len, &count, NULL ))
WriteFile( handle, buffer, len * sizeof(WCHAR), &count, FALSE ); WriteFile( handle, buffer, len * sizeof(WCHAR), &count, FALSE );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment