uninstaller: Use the standard va_list instead of __ms_va_list.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2c2e75503b
commit
9183aec7c7
|
@ -70,7 +70,7 @@ static void output_writeconsole(const WCHAR *str, DWORD len)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void output_formatstring(const WCHAR *fmt, __ms_va_list va_args)
|
static void output_formatstring(const WCHAR *fmt, va_list va_args)
|
||||||
{
|
{
|
||||||
WCHAR *str;
|
WCHAR *str;
|
||||||
DWORD len;
|
DWORD len;
|
||||||
|
@ -89,25 +89,25 @@ static void output_formatstring(const WCHAR *fmt, __ms_va_list va_args)
|
||||||
static void WINAPIV output_message(unsigned int id, ...)
|
static void WINAPIV output_message(unsigned int id, ...)
|
||||||
{
|
{
|
||||||
WCHAR fmt[1024];
|
WCHAR fmt[1024];
|
||||||
__ms_va_list va_args;
|
va_list va_args;
|
||||||
|
|
||||||
if (!LoadStringW(GetModuleHandleW(NULL), id, fmt, ARRAY_SIZE(fmt)))
|
if (!LoadStringW(GetModuleHandleW(NULL), id, fmt, ARRAY_SIZE(fmt)))
|
||||||
{
|
{
|
||||||
WINE_FIXME("LoadString failed with %d\n", GetLastError());
|
WINE_FIXME("LoadString failed with %d\n", GetLastError());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
__ms_va_start(va_args, id);
|
va_start(va_args, id);
|
||||||
output_formatstring(fmt, va_args);
|
output_formatstring(fmt, va_args);
|
||||||
__ms_va_end(va_args);
|
va_end(va_args);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void WINAPIV output_array(const WCHAR *fmt, ...)
|
static void WINAPIV output_array(const WCHAR *fmt, ...)
|
||||||
{
|
{
|
||||||
__ms_va_list va_args;
|
va_list va_args;
|
||||||
|
|
||||||
__ms_va_start(va_args, fmt);
|
va_start(va_args, fmt);
|
||||||
output_formatstring(fmt, va_args);
|
output_formatstring(fmt, va_args);
|
||||||
__ms_va_end(va_args);
|
va_end(va_args);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue