Commit 91421f0f authored by Alexandre Julliard's avatar Alexandre Julliard

xcopy.exe: Don't use wvsprintf on sysv-style varargs, use a libwine function instead.

parent 854c9b20
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include <stdio.h> #include <stdio.h>
#include <windows.h> #include <windows.h>
#include <wine/debug.h> #include <wine/debug.h>
#include <wine/unicode.h>
#include "xcopy.h" #include "xcopy.h"
WINE_DEFAULT_DEBUG_CHANNEL(xcopy); WINE_DEFAULT_DEBUG_CHANNEL(xcopy);
...@@ -999,9 +1000,8 @@ int XCOPY_wprintf(const WCHAR *format, ...) { ...@@ -999,9 +1000,8 @@ int XCOPY_wprintf(const WCHAR *format, ...) {
return 0; return 0;
} }
/* Use wvsprintf to store output into unicode buffer */
va_start(parms, format); va_start(parms, format);
len = vswprintf(output_bufW, format, parms); len = vsnprintfW(output_bufW, MAX_WRITECONSOLE_SIZE/sizeof(WCHAR), format, parms);
va_end(parms); va_end(parms);
/* Try to write as unicode all the time we think its a console */ /* Try to write as unicode all the time we think its a console */
......
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