mirror of
https://github.com/reactos/wine.git
synced 2025-01-21 11:25:25 +00:00
msvcrt: Fix incorrect use of the system wctomb function.
This commit is contained in:
parent
8d4f636d54
commit
afee133b65
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user