ucrtbase: Use public headers for _vsnprintf implementation.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Jacek Caban 2020-02-14 15:40:59 +01:00 committed by Alexandre Julliard
parent d840af4b87
commit 18545725b1
1 changed files with 5 additions and 6 deletions

View File

@ -21,15 +21,14 @@
#pragma makedep implib
#endif
#define _CRTIMP
#include <stdarg.h>
#include "msvcrt.h"
#include <corecrt_stdio_config.h>
int __cdecl __stdio_common_vsprintf(unsigned __int64 options, char *str, MSVCRT_size_t len,
const char *format, MSVCRT__locale_t locale, __ms_va_list valist);
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 _vsnprintf( char *buf, MSVCRT_size_t size, const char *fmt, __ms_va_list args )
int __cdecl _vsnprintf( char *buf, size_t size, const char *fmt, __ms_va_list args )
{
return __stdio_common_vsprintf( UCRTBASE_PRINTF_STANDARD_SNPRINTF_BEHAVIOUR,
return __stdio_common_vsprintf( _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR,
buf, size, fmt, NULL, args );
}