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:
parent
9fc7a1d276
commit
95f82f4ce3
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user