expand: 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:40 +02:00
parent a8a250cdbc
commit f0fcb19525
1 changed files with 3 additions and 3 deletions

View File

@ -28,16 +28,16 @@
static int WINAPIV myprintf(const char* format, ...)
{
__ms_va_list va;
va_list va;
char tmp[8192];
DWORD w = 0;
int len;
__ms_va_start(va, format);
va_start(va, format);
len = vsnprintf(tmp, sizeof(tmp), format, va);
if (len > 0)
WriteFile(GetStdHandle(STD_ERROR_HANDLE), tmp, len, &w, NULL);
__ms_va_end(va);
va_end(va);
return w;
}