msvcrt: Fix count parameter type in printf functions family.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2020-09-16 18:41:48 +02:00 committed by Alexandre Julliard
parent 5d49d33483
commit 68ca61a555
2 changed files with 9 additions and 9 deletions

View File

@ -1117,9 +1117,9 @@ int WINAPIV MSVCRT_fwprintf(MSVCRT_FILE *file, const MSVCRT_wchar_t *
int __cdecl MSVCRT_vsnprintf(char *str, MSVCRT_size_t len, const char *format, __ms_va_list valist);
int __cdecl MSVCRT_vsnwprintf(MSVCRT_wchar_t *str, MSVCRT_size_t len,
const MSVCRT_wchar_t *format, __ms_va_list valist );
int WINAPIV MSVCRT__snwprintf(MSVCRT_wchar_t*, unsigned int, const MSVCRT_wchar_t*, ...);
int WINAPIV MSVCRT__snwprintf(MSVCRT_wchar_t*, MSVCRT_size_t, const MSVCRT_wchar_t*, ...);
int WINAPIV MSVCRT_sprintf(char*,const char*,...);
int WINAPIV MSVCRT__snprintf(char*,unsigned int,const char*,...);
int WINAPIV MSVCRT__snprintf(char*,MSVCRT_size_t,const char*,...);
int WINAPIV MSVCRT__scprintf(const char*,...);
int __cdecl MSVCRT_raise(int sig);
int __cdecl MSVCRT__set_printf_count_output(int);

View File

@ -1152,7 +1152,7 @@ int CDECL MSVCRT__vscprintf_p(const char *format, __ms_va_list argptr)
/*********************************************************************
* _snprintf (MSVCRT.@)
*/
int WINAPIV MSVCRT__snprintf(char *str, unsigned int len, const char *format, ...)
int WINAPIV MSVCRT__snprintf(char *str, MSVCRT_size_t len, const char *format, ...)
{
int retval;
__ms_va_list valist;
@ -1165,7 +1165,7 @@ int WINAPIV MSVCRT__snprintf(char *str, unsigned int len, const char *format, ..
/*********************************************************************
* _snprintf_l (MSVCRT.@)
*/
int WINAPIV MSVCRT__snprintf_l(char *str, unsigned int count, MSVCRT__locale_t locale,
int WINAPIV MSVCRT__snprintf_l(char *str, MSVCRT_size_t count, MSVCRT__locale_t locale,
const char *format, ...)
{
int retval;
@ -1179,7 +1179,7 @@ int WINAPIV MSVCRT__snprintf_l(char *str, unsigned int count, MSVCRT__locale_t l
/*********************************************************************
* _snprintf_s (MSVCRT.@)
*/
int WINAPIV MSVCRT__snprintf_s(char *str, unsigned int len, unsigned int count,
int WINAPIV MSVCRT__snprintf_s(char *str, MSVCRT_size_t len, MSVCRT_size_t count,
const char *format, ...)
{
int retval;
@ -1339,7 +1339,7 @@ int CDECL MSVCRT_vsnwprintf_s(MSVCRT_wchar_t *str, MSVCRT_size_t sizeOfBuffer,
/*********************************************************************
* _snwprintf (MSVCRT.@)
*/
int WINAPIV MSVCRT__snwprintf( MSVCRT_wchar_t *str, unsigned int len, const MSVCRT_wchar_t *format, ...)
int WINAPIV MSVCRT__snwprintf( MSVCRT_wchar_t *str, MSVCRT_size_t len, const MSVCRT_wchar_t *format, ...)
{
int retval;
__ms_va_list valist;
@ -1352,7 +1352,7 @@ int WINAPIV MSVCRT__snwprintf( MSVCRT_wchar_t *str, unsigned int len, const MSVC
/*********************************************************************
* _snwprintf_l (MSVCRT.@)
*/
int WINAPIV MSVCRT__snwprintf_l( MSVCRT_wchar_t *str, unsigned int len, const MSVCRT_wchar_t *format,
int WINAPIV MSVCRT__snwprintf_l( MSVCRT_wchar_t *str, MSVCRT_size_t len, const MSVCRT_wchar_t *format,
MSVCRT__locale_t locale, ...)
{
int retval;
@ -1366,7 +1366,7 @@ int WINAPIV MSVCRT__snwprintf_l( MSVCRT_wchar_t *str, unsigned int len, const MS
/*********************************************************************
* _snwprintf_s (MSVCRT.@)
*/
int WINAPIV MSVCRT__snwprintf_s( MSVCRT_wchar_t *str, unsigned int len, unsigned int count,
int WINAPIV MSVCRT__snwprintf_s( MSVCRT_wchar_t *str, MSVCRT_size_t len, MSVCRT_size_t count,
const MSVCRT_wchar_t *format, ...)
{
int retval;
@ -1380,7 +1380,7 @@ int WINAPIV MSVCRT__snwprintf_s( MSVCRT_wchar_t *str, unsigned int len, unsigned
/*********************************************************************
* _snwprintf_s_l (MSVCRT.@)
*/
int WINAPIV MSVCRT__snwprintf_s_l( MSVCRT_wchar_t *str, unsigned int len, unsigned int count,
int WINAPIV MSVCRT__snwprintf_s_l( MSVCRT_wchar_t *str, MSVCRT_size_t len, MSVCRT_size_t count,
const MSVCRT_wchar_t *format, MSVCRT__locale_t locale, ... )
{
int retval;