Commit 8b26ae82 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

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

parent e2779a4c
......@@ -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];
}
......
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