reg: 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:01:29 +02:00
parent 3b6b24ea42
commit 942f9f7157
1 changed files with 7 additions and 7 deletions

View File

@ -72,7 +72,7 @@ void output_writeconsole(const WCHAR *str, DWORD wlen)
}
}
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;
DWORD len;
@ -92,7 +92,7 @@ void WINAPIV output_message(unsigned int id, ...)
{
WCHAR *fmt = NULL;
int len;
__ms_va_list va_args;
va_list va_args;
if (!(len = LoadStringW(GetModuleHandleW(NULL), id, (WCHAR *)&fmt, 0)))
{
@ -106,20 +106,20 @@ void WINAPIV output_message(unsigned int id, ...)
LoadStringW(GetModuleHandleW(NULL), id, fmt, len);
__ms_va_start(va_args, id);
va_start(va_args, id);
output_formatstring(fmt, va_args);
__ms_va_end(va_args);
va_end(va_args);
free(fmt);
}
void WINAPIV output_string(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);
__ms_va_end(va_args);
va_end(va_args);
}
/* ask_confirm() adapted from programs/cmd/builtins.c */