Fixed #1536: Clipboard data size.
This commit is contained in:
parent
71e38a4ce7
commit
65a97b13c8
@ -772,8 +772,7 @@ DWORD fixKeyCode(DWORD keyCode, unichar keyChar, enum APPLE_KEYBOARD_TYPE type)
|
|||||||
{
|
{
|
||||||
formatData = [item dataForType:type];
|
formatData = [item dataForType:type];
|
||||||
formatId = ClipboardRegisterFormat(mfc->clipboard, "UTF8_STRING");
|
formatId = ClipboardRegisterFormat(mfc->clipboard, "UTF8_STRING");
|
||||||
/* length does not include null terminator */
|
size = (UINT32) [formatData length];
|
||||||
size = (UINT32) [formatData length] + 1;
|
|
||||||
data = [formatData bytes];
|
data = [formatData bytes];
|
||||||
ClipboardSetData(mfc->clipboard, formatId, data, size);
|
ClipboardSetData(mfc->clipboard, formatId, data, size);
|
||||||
formatMatch = TRUE;
|
formatMatch = TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user