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:
@@ -564,14 +564,13 @@ size_t wxMBConvUTF7::MB2WC(wchar_t *buf, const char *psz, size_t n) const
|
|||||||
if (buf)
|
if (buf)
|
||||||
*buf++ |= c;
|
*buf++ |= c;
|
||||||
len ++;
|
len ++;
|
||||||
|
ok = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (buf)
|
if (buf)
|
||||||
*buf = (wchar_t)(c << 8);
|
*buf = (wchar_t)(c << 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
ok = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user