msvcrt: Fix incorrect use of the system wctomb function.

This commit is contained in:
Alexandre Julliard 2013-01-14 13:47:00 +01:00
parent 8d4f636d54
commit afee133b65
2 changed files with 2 additions and 1 deletions

View File

@ -3390,7 +3390,7 @@ MSVCRT_wint_t CDECL MSVCRT_fputwc(MSVCRT_wint_t wc, MSVCRT_FILE* file)
char buf[MSVCRT_MB_LEN_MAX];
int char_len;
char_len = wctomb(buf, mwc);
char_len = MSVCRT_wctomb(buf, mwc);
if(char_len!=-1 && MSVCRT_fwrite(buf, char_len, 1, file)==1)
ret = wc;
else

View File

@ -945,6 +945,7 @@ int* __cdecl __p___mb_cur_max(void);
unsigned int* __cdecl __p__fmode(void);
MSVCRT_wchar_t* __cdecl MSVCRT__wcsdup(const MSVCRT_wchar_t*);
MSVCRT_wchar_t*** __cdecl MSVCRT___p__wenviron(void);
INT __cdecl MSVCRT_wctomb(char*,MSVCRT_wchar_t);
char* __cdecl MSVCRT__strdate(char* date);
char* __cdecl MSVCRT__strtime(char* date);
int __cdecl _setmbcp(int);