msvcp90: Don't fail if conversion was successful in wctob.

This commit is contained in:
Piotr Caban 2014-09-01 17:50:34 +02:00 committed by Alexandre Julliard
parent e2779a4c9a
commit 8b26ae824b
1 changed files with 1 additions and 1 deletions

View File

@ -10280,7 +10280,7 @@ int __cdecl wctob(wint_t wc)
{
char ret[MB_LEN_MAX];
if (wc == WEOF || _Wcrtomb( ret, wc, NULL, NULL ) != -1) return EOF;
if (wc == WEOF || _Wcrtomb( ret, wc, NULL, NULL ) != 1) return EOF;
return ret[0];
}