cmd.exe: Don't use wvsprintf on sysv-style varargs, use a libwine function instead.
This commit is contained in:
parent
5dcd3c4d1c
commit
854c9b2089
|
@ -158,7 +158,7 @@ void WCMD_output (const WCHAR *format, ...) {
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
va_start(ap,format);
|
va_start(ap,format);
|
||||||
ret = wvsprintf (string, format, ap);
|
ret = vsnprintfW(string, sizeof(string)/sizeof(WCHAR), format, ap);
|
||||||
if( ret >= (sizeof(string)/sizeof(WCHAR))) {
|
if( ret >= (sizeof(string)/sizeof(WCHAR))) {
|
||||||
WINE_ERR("Output truncated in WCMD_output\n" );
|
WINE_ERR("Output truncated in WCMD_output\n" );
|
||||||
ret = (sizeof(string)/sizeof(WCHAR)) - 1;
|
ret = (sizeof(string)/sizeof(WCHAR)) - 1;
|
||||||
|
|
Loading…
Reference in New Issue