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

This commit is contained in:
Alexandre Julliard 2009-01-02 22:01:06 +01:00
parent 5dcd3c4d1c
commit 854c9b2089
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ void WCMD_output (const WCHAR *format, ...) {
int ret;
va_start(ap,format);
ret = wvsprintf (string, format, ap);
ret = vsnprintfW(string, sizeof(string)/sizeof(WCHAR), format, ap);
if( ret >= (sizeof(string)/sizeof(WCHAR))) {
WINE_ERR("Output truncated in WCMD_output\n" );
ret = (sizeof(string)/sizeof(WCHAR)) - 1;