From 942f9f71575d4a53ae032360e03f1297be1319f7 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 25 Oct 2021 11:01:29 +0200 Subject: [PATCH] reg: Use the standard va_list instead of __ms_va_list. Signed-off-by: Alexandre Julliard --- programs/reg/reg.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/programs/reg/reg.c b/programs/reg/reg.c index 617ec9df56f..1af63498b05 100644 --- a/programs/reg/reg.c +++ b/programs/reg/reg.c @@ -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 */