mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 19:41:36 -05:00
f66aa65083
The size of a CF_UNICODETEXT block is checked against the most UTF-8 it could come to (3 bytes a code unit), so the converted text is never larger than the limit. CF_DIBV5 and CF_DIB are each copied when they fit the limit, so a large first format that doesn't decode still leaves the second to paste.