Commit a17b2c1c authored by Alexandre Julliard's avatar Alexandre Julliard

msvcrt: Use the msvcrt version of printf everywhere.

parent 5cd6b342
......@@ -254,7 +254,7 @@ int _cprintf(const char* format, ...)
* Return the number of bytes that would have been written
* The code below handles both cases
*/
while ((written = _snprintf( mem, resize, format, valist )) == -1 ||
while ((written = MSVCRT_vsnprintf( mem, resize, format, valist )) == -1 ||
written > resize)
{
resize = (written == -1 ? resize * 2 : written + 1);
......
......@@ -2908,7 +2908,7 @@ int MSVCRT_vfwprintf(MSVCRT_FILE* file, const MSVCRT_wchar_t *format, va_list va
MSVCRT_wchar_t buf[2048], *mem = buf;
int written, resize = sizeof(buf) / sizeof(MSVCRT_wchar_t), retval;
/* See vfprintf comments */
while ((written = _vsnwprintf(mem, resize, format, valist)) == -1 ||
while ((written = MSVCRT_vsnwprintf(mem, resize, format, valist)) == -1 ||
written > resize)
{
resize = (written == -1 ? resize * 2 : written + sizeof(MSVCRT_wchar_t));
......
......@@ -611,11 +611,12 @@ double MSVCRT_difftime(MSVCRT_time_t time1, MSVCRT_time_t time2);
MSVCRT_time_t MSVCRT_time(MSVCRT_time_t*);
MSVCRT_FILE* MSVCRT__fdopen(int, const char *);
int MSVCRT_vsnprintf(char *str, unsigned int len, const char *format, va_list valist);
int MSVCRT_vsnwprintf(MSVCRT_wchar_t *str, unsigned int len,
const MSVCRT_wchar_t *format, va_list valist );
#ifndef __WINE_MSVCRT_TEST
int _write(int,const void*,unsigned int);
int _getch(void);
int _vsnwprintf(MSVCRT_wchar_t*,MSVCRT_size_t,const MSVCRT_wchar_t*,va_list);
int _ismbstrail(const unsigned char* start, const unsigned char* str);
MSVCRT_intptr_t _spawnve(int,const char*,const char* const *,const char* const *);
void _searchenv(const char*,const char*,char*);
......@@ -626,7 +627,6 @@ char* _strset(char*,int);
int _ungetch(int);
int _cputs(const char*);
int _cprintf(const char*,...);
int _snprintf(char*,size_t,const char*,...);
char*** __p__environ(void);
int* __p___mb_cur_max(void);
unsigned int* __p__fmode(void);
......
......@@ -764,7 +764,7 @@ int MSVCRT__snprintf(char *str, unsigned int len, const char *format, ...)
* _vsnwsprintf (MSVCRT.@)
*/
int MSVCRT_vsnwprintf( MSVCRT_wchar_t *str, unsigned int len,
const WCHAR *format, va_list valist )
const MSVCRT_wchar_t *format, va_list valist )
{
pf_output out;
......
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