Commit 9be401e3 authored by Alexandre Julliard's avatar Alexandre Julliard

attrib: Use the standard va_list instead of __ms_va_list.

parent 981306c1
...@@ -52,7 +52,7 @@ static int WINAPIV ATTRIB_wprintf(const WCHAR *format, ...) ...@@ -52,7 +52,7 @@ static int WINAPIV ATTRIB_wprintf(const WCHAR *format, ...)
static BOOL traceOutput = FALSE; static BOOL traceOutput = FALSE;
#define MAX_WRITECONSOLE_SIZE 65535 #define MAX_WRITECONSOLE_SIZE 65535
__ms_va_list parms; va_list parms;
DWORD nOut; DWORD nOut;
int len; int len;
DWORD res = 0; DWORD res = 0;
...@@ -70,10 +70,10 @@ static int WINAPIV ATTRIB_wprintf(const WCHAR *format, ...) ...@@ -70,10 +70,10 @@ static int WINAPIV ATTRIB_wprintf(const WCHAR *format, ...)
return 0; return 0;
} }
__ms_va_start(parms, format); va_start(parms, format);
len = FormatMessageW(FORMAT_MESSAGE_FROM_STRING, format, 0, 0, output_bufW, len = FormatMessageW(FORMAT_MESSAGE_FROM_STRING, format, 0, 0, output_bufW,
MAX_WRITECONSOLE_SIZE/sizeof(*output_bufW), &parms); MAX_WRITECONSOLE_SIZE/sizeof(*output_bufW), &parms);
__ms_va_end(parms); va_end(parms);
if (len == 0 && GetLastError() != ERROR_NO_WORK_DONE) { if (len == 0 && GetLastError() != ERROR_NO_WORK_DONE) {
WINE_FIXME("Could not format string: le=%u, fmt=%s\n", GetLastError(), wine_dbgstr_w(format)); WINE_FIXME("Could not format string: le=%u, fmt=%s\n", GetLastError(), wine_dbgstr_w(format));
return 0; return 0;
......
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