don't return success when converting incomplete UTF-7 sequences

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-05-31 01:22:16 +00:00
parent 9fc7a1d276
commit 95f82f4ce3

View File

@ -564,14 +564,13 @@ size_t wxMBConvUTF7::MB2WC(wchar_t *buf, const char *psz, size_t n) const
if (buf)
*buf++ |= c;
len ++;
ok = true;
}
else
{
if (buf)
*buf = (wchar_t)(c << 8);
}
ok = true;
}
}