Commit 63bff91a authored by Alexandre Julliard's avatar Alexandre Julliard

winemenubuilder: Use the standard va_list instead of __ms_va_list.

parent 43e3e1e4
......@@ -246,7 +246,7 @@ static void heap_free( void *ptr )
static WCHAR * WINAPIV heap_wprintf(const WCHAR *format, ...)
{
__ms_va_list args;
va_list args;
int size = 4096;
WCHAR *buffer;
int n;
......@@ -254,9 +254,9 @@ static WCHAR * WINAPIV heap_wprintf(const WCHAR *format, ...)
while (1)
{
buffer = xmalloc(size * sizeof(WCHAR));
__ms_va_start(args, format);
va_start(args, format);
n = _vsnwprintf(buffer, size, format, args);
__ms_va_end(args);
va_end(args);
if (n == -1)
size *= 2;
else if (n >= size)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment