mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 12:03:31 +00:00
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.