Commit 4f1f95b1 authored by Alexandre Julliard's avatar Alexandre Julliard

msvcp: Define _vsnprintf().

parent b360bf81
......@@ -136,6 +136,12 @@ int WINAPIV sprintf(char *buf, const char *fmt, ...)
__ms_va_end(valist);
return ret;
}
int __cdecl _vsnprintf( char *buf, size_t size, const char *fmt, __ms_va_list args )
{
return __stdio_common_vsprintf( UCRTBASE_PRINTF_STANDARD_SNPRINTF_BEHAVIOUR,
buf, size, fmt, NULL, args );
}
#endif
static void init_cxx_funcs(void)
......
......@@ -22,6 +22,10 @@
WINE_DEFAULT_DEBUG_CHANNEL(vcruntime);
#define UCRTBASE_PRINTF_STANDARD_SNPRINTF_BEHAVIOUR (0x0002)
int __cdecl __stdio_common_vsprintf(unsigned __int64 options, char *str, size_t len, const char *format,
_locale_t locale, __ms_va_list valist);
int* CDECL __processing_throw(void);
/*********************************************************************
......@@ -54,3 +58,9 @@ int __cdecl __uncaught_exceptions(void)
{
return *__processing_throw();
}
int __cdecl _vsnprintf( char *buf, size_t size, const char *fmt, __ms_va_list args )
{
return __stdio_common_vsprintf( UCRTBASE_PRINTF_STANDARD_SNPRINTF_BEHAVIOUR,
buf, size, fmt, NULL, args );
}
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