hostname: 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:00:55 +02:00
parent d39a23c518
commit 2f680d281b
1 changed files with 7 additions and 7 deletions

View File

@ -29,7 +29,7 @@
#include "hostname.h" #include "hostname.h"
static int hostname_vprintfW(const WCHAR *msg, __ms_va_list va_args) static int hostname_vprintfW(const WCHAR *msg, va_list va_args)
{ {
int wlen; int wlen;
DWORD count, ret; DWORD count, ret;
@ -63,27 +63,27 @@ static int hostname_vprintfW(const WCHAR *msg, __ms_va_list va_args)
static int WINAPIV hostname_printfW(const WCHAR *msg, ...) static int WINAPIV hostname_printfW(const WCHAR *msg, ...)
{ {
__ms_va_list va_args; va_list va_args;
int len; int len;
__ms_va_start(va_args, msg); va_start(va_args, msg);
len = hostname_vprintfW(msg, va_args); len = hostname_vprintfW(msg, va_args);
__ms_va_end(va_args); va_end(va_args);
return len; return len;
} }
static int WINAPIV hostname_message_printfW(int msg, ...) static int WINAPIV hostname_message_printfW(int msg, ...)
{ {
__ms_va_list va_args; va_list va_args;
WCHAR msg_buffer[8192]; WCHAR msg_buffer[8192];
int len; int len;
LoadStringW(GetModuleHandleW(NULL), msg, msg_buffer, ARRAY_SIZE(msg_buffer)); LoadStringW(GetModuleHandleW(NULL), msg, msg_buffer, ARRAY_SIZE(msg_buffer));
__ms_va_start(va_args, msg); va_start(va_args, msg);
len = hostname_vprintfW(msg_buffer, va_args); len = hostname_vprintfW(msg_buffer, va_args);
__ms_va_end(va_args); va_end(va_args);
return len; return len;
} }